mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 12:41:18 -07:00
ENABLE_SEAMS_USING_INSTANCED_MODELS -> WIP: Render models using glDrawElementsInstanced
This commit is contained in:
parent
34da899c66
commit
2980418706
8 changed files with 229 additions and 31 deletions
12
resources/shaders/gouraud_light_instanced.fs
Normal file
12
resources/shaders/gouraud_light_instanced.fs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 110
|
||||
|
||||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue