Переглянути джерело

samples: core: make fallback shader output more distinctive color

Daniele Bartolini 4 роки тому
батько
коміт
a1457c389d
2 змінених файлів з 2 додано та 1 видалено
  1. 1 0
      docs/changelog.rst
  2. 1 1
      samples/core/shaders/default.shader

+ 1 - 0
docs/changelog.rst

@@ -19,6 +19,7 @@ Changelog
 * Fixed duplicated entries in the Resource Chooser.
 * Changing the sprite in the Sprite Renderer component is now reflected to the Runtime.
 * Added noop resources in ``core/components/noop.*``.
+* Changed the fallback shader to output Color4(255, 0, 255, 255).
 
 **Lua API**
 

+ 1 - 1
samples/core/shaders/default.shader

@@ -571,7 +571,7 @@ bgfx_shaders = {
 		fs_code = """
 			void main()
 			{
-				gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
+				gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
 			}
 		"""
 	}