Closely related to https://github.com/AnalyticalGraphicsInc/cesium/issues/6039, but use-case is different nevertheless so decided to open a separate issue (cc @lilleyse as he might be working on this already).
Steps to reproduce:
viewer.scene.globe.enableLighting = true; on line 7Result: shader compilation fails
Desired result: not have any time-of-day lighting effects, but still be able to use a globe material for slopes / heights.
Thanks @YousefED! I thought we fixed this before we merged in globe materials, but we must have missed something.
@lilleyse @jasonbeverage I marked this as 'next release'. If we have time, we should try to address this for 1.41
I plan on tackling this along with #6039
Thanks again for the report @YousefED! This is fixed in #6063.
For line 7, I think you mean set it to false, not true. Let me know if I am mistaken.
Also, since globe materials are a new features, please post some screenshots if you are able to share your work; we would love to see it. 😄
@pjcozzi correct.
I'm not using globe materials directly, but experimenting with code based on it to generate snow ⛄️ 😎
original

snow:

That looks great! We have a pretty nice "splatting" layer in osgEarth
that we could probably port to Cesium using globe materials. Basically
you feed in a land use raster to the GPU and figure out what texture to
repeat based on the land use code (grass, rock, same, etc), the normal and
elevation.
Here's a screenshot of what it looks like in osgEarth
https://pbs.twimg.com/media/B1SsPThIIAAjIdD.jpg
On Wed, Dec 20, 2017, 4:58 AM Yousef notifications@github.com wrote:
@pjcozzi https://github.com/pjcozzi correct.
I'm not using globe materials directly, but experimenting with code based
on it to generate snow :):[image: image]
https://user-images.githubusercontent.com/368857/34201400-a4f9c2f6-e574-11e7-88d8-30526ac1e434.png—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AnalyticalGraphicsInc/cesium/issues/6042#issuecomment-353018824,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAT74jx1eDjWJXeBF6kNFGInZfACMqJkks5tCNpGgaJpZM4Q8bwb
.
@YousefED very nice!!! Also, check out some Cesium snow work my students did this past semester: https://github.com/HuYuxin/CIS565FinalProjectCesiumSnow/blob/master/CIS565FinalProjectREADME.md
@jasonbeverage contributions welcome, as always! 😄
@pjcozzi awesome!! Are there more projects online? I missed the livestream (time difference)!
Yes, they are all here: https://cis565-fall-2017.github.io/studentwork.html
are there any code samples out there to do this kind of snowy rocky texture? That screenshot of @YousefED looks amazing!