Quantcast
Channel: Questions in topic: "hlsl"
Viewing all articles
Browse latest Browse all 206

Is there a default / built-in vertex shader so I can avoid the boilerplate?

$
0
0
I'm writing a custom shader, but the crux of the code is present in the fragment function. The vertex function is pretty much just boilerplate and "wasted space". When writing a post-processing shader, you can include the standard library: #include "Packages/com.unity.postprocessing/PostProcessing/Shaders/StdLib.hlsl" and then simply write #pragma vertex VertDefault which takes care of the vertex function for you. Is there anything similar for non-postprocessing shaders?

Viewing all articles
Browse latest Browse all 206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>