shader and things

This commit is contained in:
Nishi 2026-01-05 18:40:10 +09:00
commit b9f4b88381
Signed by: nishi
GPG key ID: 27EF69B208EB9343
7 changed files with 244 additions and 14 deletions

8
resource/shadow.fs Normal file
View file

@ -0,0 +1,8 @@
#version 110
uniform sampler2DShadow texture;
varying vec4 shadow;
void main (void){
gl_FragColor = shadow + (gl_Color - shadow) * shadow2DProj(texture, gl_TexCoord[0]);
}