How to add shaders for glTF building models?

I would like to find out if it is possible to add shaders for glTF building models? Any recommended library/plugins?

An example is this : (but it is not for building models).

Do you have an example of the kind of effect you’re trying to achieve? The easiest way might be using CesiumJS’s post processing framework. This example shows you how to apply a custom shader just to a specific model:

This gives it a red highlight when you hover over it with the mouse.

I would like to achieve this. The shadings at the side.

Are you referring to the shadows cast by the buildings? If so, you can turn on shadows in the viewer constructor like in this example:

The shadows will be cast from the direction of the sun, based on the time of day set by the timeline at the bottom.

There’s a few things you can tweak about shadows in CesiumJS to get better visual quality at the cost of performance or vice versa. For example, you can get a reference to the shadow map from the viewer ( which has a number of properties you can tweak.

The two that have the biggest impact in my experience are turning on soft shadows ( and increasing the shadow map size (