Parcourir la source

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

pull/4432/head
Jeffery Myers il y a 6 mois
committed by GitHub
Parent
révision
728ccc96bc
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: B5690EEEBB952194
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. +4
    -1
      examples/shaders/resources/shaders/glsl330/base.fs

+ 4
- 1
examples/shaders/resources/shaders/glsl330/base.fs Voir le fichier

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

Chargement…
Annuler
Enregistrer