diff options
| author | Ray <[email protected]> | 2020-03-05 13:59:57 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-03-05 13:59:57 +0100 |
| commit | 99eec35358b2c8fc0dad75233265da74aa14dd1a (patch) | |
| tree | 3ec55a2a4003b57fc6bceaead2e3f1d42cd929a3 /examples | |
| parent | 60627725904dfddec4cf9f5902c91eebbddaf0e4 (diff) | |
| download | raylib.com-99eec35358b2c8fc0dad75233265da74aa14dd1a.tar.gz raylib.com-99eec35358b2c8fc0dad75233265da74aa14dd1a.zip | |
Update examples for desktop
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/web/shaders/resources/shaders/glsl330/base_lighting.vs (renamed from examples/web/shaders/resources/shaders/glsl330/basic_lighting.vs) | 0 | ||||
| -rw-r--r-- | examples/web/shaders/resources/shaders/glsl330/fog.vs | 32 | ||||
| -rw-r--r-- | examples/web/shaders/resources/shaders/glsl330/lighting.fs (renamed from examples/web/shaders/resources/shaders/glsl330/basic_lighting.fs) | 0 | ||||
| -rw-r--r-- | examples/web/shaders/resources/shaders/glsl330/mask.vs | 21 |
4 files changed, 0 insertions, 53 deletions
diff --git a/examples/web/shaders/resources/shaders/glsl330/basic_lighting.vs b/examples/web/shaders/resources/shaders/glsl330/base_lighting.vs index 509954d..509954d 100644 --- a/examples/web/shaders/resources/shaders/glsl330/basic_lighting.vs +++ b/examples/web/shaders/resources/shaders/glsl330/base_lighting.vs diff --git a/examples/web/shaders/resources/shaders/glsl330/fog.vs b/examples/web/shaders/resources/shaders/glsl330/fog.vs deleted file mode 100644 index 00779cf..0000000 --- a/examples/web/shaders/resources/shaders/glsl330/fog.vs +++ /dev/null @@ -1,32 +0,0 @@ -#version 330 - -// Input vertex attributes -in vec3 vertexPosition; -in vec2 vertexTexCoord; -in vec3 vertexNormal; -in vec4 vertexColor; - -// Input uniform values -uniform mat4 mvp; -uniform mat4 matModel; - -// Output vertex attributes (to fragment shader) -out vec2 fragTexCoord; -out vec4 fragColor; -out vec3 fragPosition; -out vec3 fragNormal; - -// NOTE: Add here your custom variables - -void main() -{ - // Send vertex attributes to fragment shader - fragTexCoord = vertexTexCoord; - fragColor = vertexColor; - fragPosition = vec3(matModel*vec4(vertexPosition, 1.0f)); - mat3 normalMatrix = transpose(inverse(mat3(matModel))); - fragNormal = normalize(normalMatrix*vertexNormal); - - // Calculate final vertex position - gl_Position = mvp*vec4(vertexPosition, 1.0); -} diff --git a/examples/web/shaders/resources/shaders/glsl330/basic_lighting.fs b/examples/web/shaders/resources/shaders/glsl330/lighting.fs index 50b41f0..50b41f0 100644 --- a/examples/web/shaders/resources/shaders/glsl330/basic_lighting.fs +++ b/examples/web/shaders/resources/shaders/glsl330/lighting.fs diff --git a/examples/web/shaders/resources/shaders/glsl330/mask.vs b/examples/web/shaders/resources/shaders/glsl330/mask.vs deleted file mode 100644 index 66a1516..0000000 --- a/examples/web/shaders/resources/shaders/glsl330/mask.vs +++ /dev/null @@ -1,21 +0,0 @@ -#version 330 - -// Input vertex attributes -in vec3 vertexPosition; -in vec2 vertexTexCoord; - -// Input uniform values -uniform mat4 mvp; -uniform mat4 matModel; - -// Output vertex attributes (to fragment shader) -out vec2 fragTexCoord; - -void main() -{ - // Send vertex attributes to fragment shader - fragTexCoord = vertexTexCoord; - - // Calculate final vertex position - gl_Position = mvp*vec4(vertexPosition, 1.0); -} |
