Przeglądaj źródła

Fixed sprite tint example

Björn Ritzl 5 lat temu
rodzic
commit
65daabf50b

BIN
examples/sprite/tint/spritematerial.png


+ 2 - 0
examples/sprite/tint/tint.md

@@ -9,3 +9,5 @@ The example uses a script to tint (color) sprites in a couple of different ways.
 It is important to keep in mind that each tinted sprite generates a new draw call since a modified tint value will break the built in draw call batching in Defold.
 
 ![tint](tint.png)
+
+![sprite material](spritematerial.png)

BIN
examples/sprite/tint/tint.png


+ 2 - 2
examples/sprite/tint/tint.script

@@ -7,8 +7,8 @@ function init(self)
 end
 
 --[[
-1. x,y,z,w -> r,g,b,a. Keep read and alpha. Remove green and blue.
+1. x,y,z,w -> r,g,b,a. Keep red and alpha. Remove green and blue.
 2. x = red. Remove the red color component completely
 3. w = alpha. Make the sprite semi-transparent
 4. The tint property can be animated, either as a whole or each individual value
---]]
+--]]