

Naturally, the templates are all fully editable, and you can even create your own, specifying the appropriate scope to ensure they only show in the right place. And once inside a pass, there are a number of templates for creating common Blend commands. These allow you to quickly create various properties, as well as more complex shaders that will create a surface shader ( surf), a vertex and fragment shader ( vfshader), or – if you’re already inside a subshader block – create a new pass ( vfpass). Just start typing, and Rider will automatically show a popup.Īs you can see in the image above, we’ve also added live templates. Rider now supports completion of block keywords, command keywords, and even command values. ShaderLab is a very block-oriented language, so this will save you a lot of boilerplate keystrokes! Hit enter inside the braces to insert a new line, with correct auto-indent and formatting. One of the most basic features you’d expect from a smart IDE like Rider is typing assistance, and we’ve made a lot of changes to ShaderLab support to provide this. It introduces a wealth of new features like typing assistance, live templates, online help, breadcrumbs, the Structure tool window and even Ctrl+Click navigation and renaming of shaders and shader passes. shader files as well as Rider’s deep understanding of the HLSL shader language to provide a more productive editing experience. This release builds on the existing support for ShaderLab. With the release of Rider 2023.2 just around the corner, it’s time to take a look at all the new features we’ve added for Unity shader files.
