mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-03 17:38:43 +03:00
QIDISlicer1.0.0
This commit is contained in:
12
resources/shaders/ES/gouraud_light_instanced.fs
Normal file
12
resources/shaders/ES/gouraud_light_instanced.fs
Normal file
@@ -0,0 +1,12 @@
|
||||
#version 100
|
||||
|
||||
uniform vec4 uniform_color;
|
||||
uniform float emission_factor;
|
||||
|
||||
// x = tainted, y = specular;
|
||||
varying vec2 intensity;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
|
||||
}
|
||||
Reference in New Issue
Block a user