shader and things
This commit is contained in:
parent
69c80c9f27
commit
b9f4b88381
7 changed files with 244 additions and 14 deletions
8
resource/shadow.fs
Normal file
8
resource/shadow.fs
Normal 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]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue