mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-02-02 09:58:41 +03:00
update resources
This commit is contained in:
21
resources/shaders/110/thumbnail.fs
Normal file
21
resources/shaders/110/thumbnail.fs
Normal file
@@ -0,0 +1,21 @@
|
||||
#version 110
|
||||
|
||||
uniform bool ban_light;
|
||||
uniform vec4 uniform_color;
|
||||
uniform float emission_factor;
|
||||
|
||||
// x = tainted, y = specular;
|
||||
varying vec2 intensity;
|
||||
//varying float drop;
|
||||
varying vec4 world_pos;
|
||||
|
||||
void main()
|
||||
{
|
||||
if (world_pos.z < 0.0)
|
||||
discard;
|
||||
if(ban_light){
|
||||
gl_FragColor = uniform_color;
|
||||
} else{
|
||||
gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user