Added example demonstrating sf::VertexBuffer, sf::Shader and sf::Thread usage.
This commit is contained in:
parent
fe1407b6b5
commit
d032050ccf
7 changed files with 937 additions and 0 deletions
8
examples/island/resources/terrain.vert
Normal file
8
examples/island/resources/terrain.vert
Normal file
|
@ -0,0 +1,8 @@
|
|||
varying vec3 normal;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
|
||||
gl_FrontColor = gl_Color;
|
||||
normal = vec3(gl_MultiTexCoord0.xy, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue