Add existing to tracked
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
uniform sampler2D image;
|
||||
|
||||
czm_material czm_getMaterial(czm_materialInput materialInput)
|
||||
{
|
||||
czm_material material = czm_getDefaultMaterial(materialInput);
|
||||
vec4 rampColor = texture(image, vec2(materialInput.slope / (czm_pi / 2.0), 0.5));
|
||||
rampColor = czm_gammaCorrect(rampColor);
|
||||
material.diffuse = rampColor.rgb;
|
||||
material.alpha = rampColor.a;
|
||||
return material;
|
||||
}
|
||||
Reference in New Issue
Block a user