기술 자료

Unity Engine

Unity Engine

HLSL shader examples in the Built-in Render Pipeline

Examples of HLSL shaders in the Built-In Render Pipeline.
읽는 시간 1분최근 업데이트: 2달 전

This section contains example source code for hand-coded custom shaders that are compatible with the Built-in Render Pipeline.

Page

Description

Single color shader exampleExample of a shader that renders a single color.
Checkerboard pattern shader exampleExample of a shader that renders a checkerboard pattern.
Simple unlit shader exampleExample of a shader that renders an unlit texture.
Mesh normals shader exampleExample of a shader that renders mesh normals as colors.
Reflections shader exampleExample of a shader that renders a reflection of the sky.
Normal map texture shader exampleExample of a shader that uses a normal map texture to render reflections.
Tri-planar texturing shader exampleExample of a shader that projects a texture onto an object.
Simple diffuse lighting shader exampleExample of a shader that uses simple diffuse lighting.
Ambient light shader exampleExample of a shader that uses ambient light.
Shadow casting shader exampleExample of a shader that casts shadows.
Receiving shadows shader exampleExample of a shader that does shadow calculations.
Fog shader exampleExample of a shader that renders fog.
Visualizing vertex data shader examplesExamples of shaders that render the UVs, normals, colors, tangents, and binormals of vertices.

Additional resources