A InitRenderStruct element is used to initialize materials and shaders for rendering. It is typically created by Cinema 4D but it can be created on demand to sample materials or shaders. See Sampling a Shader.


A InitRenderStruct element can be initiated and used with these functions:

// This example initiates a shader to sample it.
const INITRENDERRESULT res = shader->InitRender(irs);
return false;


The settings of InitRenderStruct are:

Further Reading