Explorar el Código

Use the vertex color as part of the base shader in GLSL330

pull/4431/head
Jeffery Myers hace 2 meses
padre
commit
72e5a41101
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      examples/shaders/resources/shaders/glsl330/base.fs

+ 4
- 1
examples/shaders/resources/shaders/glsl330/base.fs Ver fichero

@ -20,6 +20,9 @@ void main()
// NOTE: Implement here your fragment shader code
finalColor = texelColor*colDiffuse;
// final color is the color from the texture
// times the tint color (colDiffuse)
// times the fragment color (interpolated vertex color)
finalColor = texelColor*colDiffuse*fragColor;
}

Cargando…
Cancelar
Guardar