Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelBarbosatec committed Nov 14, 2024
1 parent 6845205 commit fafc670
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v3.0/doc/shader.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
To use shader in your component just use the mixin `UseShader`.
Did this, you can access to 3 new params: `shader`,`shaderComponentStatic`,`shaderCanvasScale`.

OBS: Some componente already have this mixin. They are `GameMap` and `TileLayerComponent`. This turn possible add shader in the map or in specific layer of map.


- `shader` : After load yout `FragmentShader` set it here;
- `shaderComponentStatic`: If your componente is static (don't have changes in the course of time) set this `true` to better performance. This way is not necessary send to the shader the component texture every frame.
Expand Down

0 comments on commit fafc670

Please sign in to comment.