Hi!
I’m trying to solve the issue: “Colorize polygon like ElevationRamp”.
I’m trying to use [ElevationRampMaterial](FROM: https://github.com/CesiumGS/cesium/blob/master/Source/Shaders/Materials/ElevationRampMaterial.glsl) as a fragment shader for custom appearance,
-
test 1
but it doesn’t work, because I cannot useczm_material
in the fragment shader.
So, what can I use instead of it? -
I’ve tried to simplify this test: test 2
But in this case I get an error, related to the custom material.
So, what is wrong with my fabric and material?
I’ll be appreciate for any help!