Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

nkShader

  • Last UpdatedSep 10, 2023
  • 1 minute read

The nkShader node is the default shader used to render a geometry.

At least diffuse or selfDiffuse must be connected. When both are connected, the resulting color is their sum.

When certain inputs are connected, the shader uses realtime lighting. Look for RTLights à On in the following diagram.

When the RTLights are enabled, the normal must be connected. Only connect the normal when some nodes in the graph require the pixel's normal (for example, the node nkVeReflectionVectorWS) or when internal calculations require it (as when the RTLights are enabled).

Code example

This is a code example for nkShader.

<nkShader name="nNodeName" diffuse="[param]" lightsAttenuation="none" reflectionsDetail="low"/>

Related Links
TitleResults for “How to create a CRG?”Also Available in