Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Because retrieving the UV coordinates is a costly process, it is best to centralize this operation in a single shader and share the results with all shaders. For a shader to benefit of this, it may declare a parameter similar to this:

Code Block
languagecpp
themeMidnight
float uvCoord[2] = { 0, 0 } 
[[
	string default_connection = "uvCoord",
	int skip_init = 1,
	string label = "UV Coordinates",
	string widget = "null" 
]],

...