Question by
Impero · Jan 06 at 06:40 PM ·
shadersvertex shaderhlsl
Is there a default / built-in vertex shader so I can avoid the boilerplate?
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?
Comment
Your answer
Follow this Question
Related Questions
Shaders don't work properly on android 0 Answers
A question about UVW. 0 Answers
Setting hlsl buffer<> value from c# code? 0 Answers
Very basic shader problem 0 Answers
How can I get the maximum texture value within a tri in a shader? 0 Answers