Added CaughtRaccoon state to AI FSM #449
|
@ -8,6 +8,7 @@ struct MatPropData
|
||||||
int textureIndex;
|
int textureIndex;
|
||||||
float alpha;
|
float alpha;
|
||||||
float sliderThreshold;
|
float sliderThreshold;
|
||||||
|
float borderThickness;
|
||||||
vec4 sliderStartColor;
|
vec4 sliderStartColor;
|
||||||
vec4 sliderEndColor;
|
vec4 sliderEndColor;
|
||||||
vec4 sliderBarColor;
|
vec4 sliderBarColor;
|
||||||
|
@ -43,6 +44,8 @@ void main()
|
||||||
{
|
{
|
||||||
//fragColor = texture(textures[nonuniformEXT(MatProp.data[In2.materialIndex].textureIndex)], In.uv);
|
//fragColor = texture(textures[nonuniformEXT(MatProp.data[In2.materialIndex].textureIndex)], In.uv);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (In.uv.x > MatProp.data[In2.materialIndex].sliderThreshold)
|
if (In.uv.x > MatProp.data[In2.materialIndex].sliderThreshold)
|
||||||
fragColor = MatProp.data[In2.materialIndex].sliderBarColor;
|
fragColor = MatProp.data[In2.materialIndex].sliderBarColor;
|
||||||
else
|
else
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue