HoloLens Shader Pack
Boost your HoloLens development with these shaders that were optimized for running on the HoloLens device. It includes many effects that are inspired by Microsoft HoloLens demos.
Materials for spatial mapping
Probably the most powerful feature of HoloLens is it’s ability to create and overlay a 3D representation of a room. The generated spatial mapping geometry is basically a bucket of triangles. It’s up to the developer to make a creative visualization of it.
The HoloLens Shader Pack contains several shaders and materials that are especially aimed at creating interesting textures and effects for the spatial mapping geometry. These materials take into account the limitations of using them on the actual device. Example materials are included to showcase the shaders that they are based on. The included shaders can achieve totally different looks depending on their configured values. Experimenting is highly recommended.
Furthermore the spatial mapping materials can be configured to show a circular pulse that can be used to reveal the spatial mesh. Utility scripts for animating these pulses are included in the pack.
Triangles material (CellsAndLines shader)
A single color material of with lots of animated details.
Quads material (CellsAndLines shader)
Based on the same shader as the triangles material, but with a different input texture for defining the cells and lines.
Holodeck material (Grid shader)
The classic orange grid with thick lines, but now applied to the spatial mesh of your room.
Material squares (Grid shader)
Based on the same shader as the previous material, but with a totally different appearance due to different configuration of the shader variables.
Multigrid material (Multigrid shader)
A double grid material with different colors for each grid.
Fragments material (PatternAndHighlight)
A material that wraps the mesh in a pattern of bright crosses and adds a glow highlight that can be controlled by gaze.
Material surfaces for holographic objects
When importing models from 3D scans, CAD packages or other sources often materials are not prepared for rendering on the HoloLens. Either materials are missing completely or the used materials are aimed at visualization on a desktop PC or VR headset. Since the HoloLens displays can only add light on top of a real scene some materials deliver better results than others. The HoloLens Shader Pack comes with a selection of materials that are useful for holographic displays.
GradientBlueGreen material (Gradient shader)
GradientPurpleOrange material (Gradient shader)
WireFloat material (FloatingWire shader)
XRay shader (XRay material)
Holographic material (Holographic shader)
The floating wire shader with added transparent falloff.
Transmission material (Transmission shader)
The holographic shader with added animating stripes to mimic the classic hologram transmission effect.
Triplanar material (Triplanar Single Texture shader)
The always useful triplanar shader to quickly texture a mesh that has no texture coordinates.
There’s also a three texture variant so you can use three different textures for all major axes.
Two-sided triangle material (Two Sided Triangle shader)
A shader that has triangles with different colors for the front and back material.
Two-sided wire material (Two Sided Wire shader)
A wireframe shader with different colors for front and back material.
Questions or suggestions?
If you have questions about using these material or would like to see other shaders included please feel free to contact me.