Skip to content

Commit

Permalink
WIP gltf_texture_lookup_value to color & float4 nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
r-veenstra committed Jul 25, 2023
1 parent 4476787 commit efed56d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions exts/cesium.omniverse/mdl/cesium.mdl
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,13 @@ export gltf_texture_lookup_value cesium_base_color_texture_lookup(*) = gltf_text
// Copy of the glTF texture lookup shader. Use this instead of cesium_base_color_texture_lookup when loading
// custom textures to use with cesium_material.
export gltf_texture_lookup_value cesium_texture_lookup(*) = gltf_texture_lookup();

// Return the texture RGB as a color from a gltf_texture_lookup_value
export color gltf_texture_lookup_value_to_color(gltf_texture_lookup_value gltf) {
return color(gltf.value.x, gltf.value.y, gltf.value.z);
}

// Return the texture RGB as a float4 from a gltf_texture_lookup_value
export float4 gltf_texture_lookup_value_to_float4(gltf_texture_lookup_value gltf) {
return gltf.value;
}

0 comments on commit efed56d

Please sign in to comment.