mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-12 16:29:41 +00:00
Support macOS + OpenGL 3.3+ GPU
This commit is contained in:
@@ -19,7 +19,7 @@ uniform vec3 sun_color; \n\
|
||||
out vec4 color;\n\
|
||||
void main() {\n\
|
||||
float lum = max(dot(normal, normalize(sun_position)), 0.0);\n\
|
||||
color = texture2D(tex, texcoord) * vec4((0.3 + 0.7 * lum) * sun_color, 1.0);\n\
|
||||
color = texture(tex, texcoord) * vec4((0.3 + 0.7 * lum) * sun_color, 1.0);\n\
|
||||
}\n\
|
||||
";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user