HC_PShow_Net_Shaders

bool HC_PShow_Net_Shaders(int count, Key const keys[], char const *target, Key *out_vertex_shader_definition, Key *out_pixel_shader_definition)
bool HC_PShow_Net_Shaders(int count, Key const keys, char const target, Key out_vertex_shader_definition, Key out_pixel_shader_definition)

Similar to Show_Shader(), but returns the net effective value along a discrete segment path.

Valid choices for target are triangles, lines and points.

As with all PShow_Net_* routines, keys[0] represents the lowest (a.k.a the “most local” or “leaf”), and key[keycount-1] represents the highest segment. If the path is incomplete, missing segments are filled in if possible. Missing segments must be part of the same direct ancestry in order to be filled in. If the desired path contains an include link, the shortest unambiguous set of keys would be [leaf, includelink, root], where includelink is the return value from Include_Segment().

By default, HOOPS will determine the Net attribute from the last specified key all the way to the root. If you add -1 at the end of the array, the PShow_Net routines will not proceed beyond the end of the last specified key.

Parameters

count: The size of keys

keys: An array of HC_KEY’s delineating a path of segments.

target: The graphic primitive you want to see the details for.

out_vertex_shader_definition: A Key to a vertex shader definition. Passed by reference. Returned to user.

out_pixel_shader_definition: A Key to a pixel shader definition. Passed by reference. Returned to user.