Ver a proveniência

Use the vertex color as part of the base shader in GLSL330 (#4431)

pull/4432/head
Jeffery Myers há 6 meses
committed by GitHub
ascendente
cometimento
728ccc96bc
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: B5690EEEBB952194
1 ficheiros alterados com 4 adições e 1 eliminações
  1. +4
    -1
      examples/shaders/resources/shaders/glsl330/base.fs

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

@ -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;
}

Carregando…
Cancelar
Guardar