Right now, node uniform updates only trigger displace pipeline updates.
The below commented out code could do this. It currently does not have a function to point to. We could either A) create a matching uniform update method for instancing pipeline(s), or B) replace the current setDisplacePipelineUniform method with a universal setUniform method, setting the value for all of the TerrainRenderer's pipelines.
|
// terrainRendererRef.current?.setInstancingPipelineUniform(key, value); |
Updated:
|
terrainRendererRef.current?.setDisplacePipelineUniform(key, value); |
Right now, node uniform updates only trigger displace pipeline updates.
The below commented out code could do this. It currently does not have a function to point to. We could either A) create a matching uniform update method for instancing pipeline(s), or B) replace the current
setDisplacePipelineUniformmethod with a universalsetUniformmethod, setting the value for all of theTerrainRenderer's pipelines.TerrainGen/src/components/editor/index.tsx
Line 36 in 9b09cff
Updated:
TerrainGen/src/hooks/use-pipelines.ts
Line 32 in 8ab0c14