wavefront obj support
This commit is contained in:
14
hexworld/res/obj.fs.glsl
Normal file
14
hexworld/res/obj.fs.glsl
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 440
|
||||
|
||||
in vec2 vcoord;
|
||||
in float light;
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
||||
void main ()
|
||||
{
|
||||
vec4 color = texture(tex, vcoord);
|
||||
color.w = 1;
|
||||
color.xyz *= light;
|
||||
gl_FragColor = clamp(color, 0, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user