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/24 09:20]
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 a unique ID of the currently hit object instance (of type __int64). 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 a 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