Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
corona_shade_context [2015/02/10 14:42]
keymaster
corona_shade_context [2020/04/29 08:55] (current)
keymaster [Using Corona Shade Context]
Line 12: Line 12:
   * ''NodeID()''   * ''NodeID()''
  
-You can get additional functionality with the ''Execute'' method. When passing ''0x389A7625'' as ''cmd'' argument, scene geometry hit ShadeContext will return an unique ID of the currently hit object instance. This can be used for example to randomize color between different instances (build 2015-02-10 and newer)+You can get additional functionality with the ''Execute'' method. When passing ''constexpr int CORONA_GET_INSTANCE_ID = 0x389A7625''as ''cmd'' argument, scene geometry hit ShadeContext will return unique ID of the currently hit object instance (of type uint64_t). This can be used for example to randomize color between different instances.

Log In