LowPolyWater | The full code for the low-poly water tutorial | Learning library
kandi X-RAY | LowPolyWater Summary
kandi X-RAY | LowPolyWater Summary
The full code for the low-poly water tutorial. The tutorial can be found here: This requires the lwjgl.jar and the lwjgl_utils.jar along with the relevant natives (from LWJGL 2).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main method
- Interpolate noise
- Moves the current camera position
- Get perlin noise
- Returns true if the location of the location needs updating
- Initialize the framebuffer
- Sets the shader parameters
- Determine if the value of the given location needs updating
- Compile a shader file
- Gets a reader for this file
- Creates an FBO with the specified width and height and depth buffer
- Returns the colour
- Initialize rendbuffer
- Load the icons
- Gets the column as float buffer
- Set the display mode
- Get start resolution
- Returns true iff the framebuffer is complete
- Blits this FBO into another FBO
- Creates a projection matrix for the screen
- Create a new data feed with the given attributes
- Blit the contents of this FBO buffer with the specified color index
- Creates a Vao with the given indices and indices
- Calculates the normal normal of the triangle
- Links the texture units to the fragment shader
- Creates a terrain table
LowPolyWater Key Features
LowPolyWater Examples and Code Snippets
Community Discussions
Trending Discussions on LowPolyWater
QUESTION
I'm new to shaders and I'm trying to make a shader for some very simple low poly water. I have created this simple surface shader that changes the vertex heights.
The problem is that it doesn't receive shadows as you can see in the gif and there is a weird behavior on the edges.
What am I doing wrong?
...ANSWER
Answered 2018-Jul-12 at 12:57Figured it out!
I just need to add addshadow to this line #pragma surface surf Lambert vertex:vert addshadow
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install LowPolyWater
You can use LowPolyWater like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the LowPolyWater component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page