Fix shadowmap.fs

also suffers the same problem as pbr.fs
This commit is contained in:
CDM15y 2024-07-17 05:54:41 +01:00 committed by GitHub
parent c6ae16a277
commit 99722d1ff1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,15 +1,13 @@
#version 120 #version 120
precision mediump float;
// This shader is based on the basic lighting shader // This shader is based on the basic lighting shader
// This only supports one light, which is directional, and it (of course) supports shadows // This only supports one light, which is directional, and it (of course) supports shadows
// Input vertex attributes (from vertex shader) // Input vertex attributes (from vertex shader)
varying in vec3 fragPosition; varying vec3 fragPosition;
varying in vec2 fragTexCoord; varying vec2 fragTexCoord;
//varying in vec4 fragColor; //varying in vec4 fragColor;
varying in vec3 fragNormal; varying vec3 fragNormal;
// Input uniform values // Input uniform values
uniform sampler2D texture0; uniform sampler2D texture0;