Que recherchez-vous ?
Unity Platform

Block Shaders (Surface Shaders Replacement)

Apr 14, 2025
Planned
Safe harbor statement

The following is intended for informational purposes only, and may not be incorporated into any contract. No purchasing decisions should be made based on the following materials. Unity is not committing to deliver any functionality, features or code. The development, timing and release of all products, functionality and features are at the sole discretion of Unity, and are subject to change.

How to share roadmap feedback

If you have accepted to use functional cookies and logged in using your Unity ID at the top right of the page, then sharing feedback is as simple as clicking a card below, selecting a topic’s importance, adding your point of view, and submitting. If you prefer not to accept functional cookies or log in, you will be prompted to enter an email address and validate it, so we know how to reach out when the topic evolves. For more information read the Feedback and privacy terms.

Summary

Block Shaders introduce a streamlined and modular text-based shader authoring workflow, and allow to override and extend the functionality of existing shaders, without the complexity of modifying the original shader source. Block Shaders also aim to unify shader authoring across render pipeline.

This new workflow introduces the concept of Blocks and Templates:

  • Blocks are HLSL functions with a set interface, which can be reused and shared across shaders and projects as assets and libraries.
  • Templates correspond to subshaders, and provide public customization points along the shader's execution flow. Users can utilize the shipped templates, or create their own.

Text-based Block Shaders can target the available templates, in order to override and extend the template's customization points using your own custom blocks.

The official forum announcement for Block Shaders includes a public demo, for everyone to experiment with and provide feedback:

Intended Outcome/Usecase

  • Block Shaders provide a text-based workflow for authoring shaders in a streamlined, modular and cross pipeline fashion.
  • Scriptable Render Pipelines provide a collection of shader templates, including Lit Surface Shaders, to be overridden and extended by user-authored Block Shaders.
Help us deliver the deliver that matter to you. Let us know how important is this for you.
By submitting you agree to the Unity’s feedback terms and privacy policy.
Discover upcoming updates and share your feedback