Skip to content

ShadingSystem::convert_value, allow float[3] <--> triple conversion.#754

Merged
lgritz merged 1 commit intoAcademySoftwareFoundation:masterfrom
lgritz:lg-array
May 20, 2017
Merged

ShadingSystem::convert_value, allow float[3] <--> triple conversion.#754
lgritz merged 1 commit intoAcademySoftwareFoundation:masterfrom
lgritz:lg-array

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented May 19, 2017

This utility is used by renderers for getattribute and other
renderer-to-OSL data copying, and is meant to facilitate the
obvious set of copy conversions between slightly mismatched yet
sensible types.

Adding a clause that lets you retrieve a triple (point, color, etc.)
even if it was declared on the renderer side as float[3], and vice
versa.

This utility is used by renderers for getattribute and other
renderer-to-OSL data copying, and is meant to facilitate the
obvious set of copy conversions between slightly mismatched yet
sensible types.

Adding a clause that lets you retrieve a triple (point, color, etc.)
even if it was declared on the renderer side as float[3], and vice
versa.
@fpsunflower
Copy link
Copy Markdown
Contributor

LGTM

@lgritz lgritz merged commit db18399 into AcademySoftwareFoundation:master May 20, 2017
@lgritz lgritz deleted the lg-array branch May 20, 2017 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants