Skip to content

Commit 4035ee1

Browse files
committed
GLTF - add rprGLTF_AssignLightToGroup for Windows build
1 parent 2bfeda9 commit 4035ee1

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed
3 KB
Binary file not shown.

RadeonProRender/inc/ProRenderGLTF.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,14 @@ rprGLTF_GetParentGroupFromGroup("hand", 512, groupName, NULL);
133133
134134
if the shape/folder has not parent, the empty string is returned in groupName
135135
136+
rprGLTF_AssignLightToGroup only works if the light is exported as KHR_lights_punctual.
137+
Meaning that RPRGLTF_EXPORTFLAG_KHR_LIGHT must be used. and the light must be directional, point or spot.
138+
136139
these functions return RPR_SUCCESS if success
137140
*/
138141
extern int rprGLTF_AssignShapeToGroup(rpr_shape shape, const rpr_char* groupName);
139142
extern int rprGLTF_AssignCameraToGroup(rpr_camera camera, const rpr_char* groupName);
143+
extern int rprGLTF_AssignLightToGroup(rpr_light light, const rpr_char* groupName);
140144
extern int rprGLTF_AssignParentGroupToGroup(const rpr_char* groupChild, const rpr_char* groupParent);
141145
extern int rprGLTF_SetTransformGroup(const rpr_char* groupChild, float* matrixComponents);
142146
extern int rprGLTF_GetParentGroupFromShape(rpr_shape shape, size_t size, rpr_char* groupName, size_t* size_ret);
262 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)