RenderGraphNodeShader

class guerilla.RenderGraphNodeShader

Bases: guerilla.RenderGraphNodeAttributes

Adds the surface shader or the displacement shader or both in the input attributes.

Mode

The mode of the node, either “material” (sets surface, displacement and volume), “surface”, “displacement” or “volume”.

Type:RW
Shader

The name of the Material to set

Type:RW
overrideinheritedattr(plugname, value)

Overrides an attribute by its name, if the plug doesn’t exist, it is created.

Parameters:
  • plugname (str) – The attribute name to override
  • value (any) – The attribute value to override
Returns:

the attribute plug

Return type:

Plug