mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2025-07-04 07:16:05 +02:00
AnimatorSystems test.
P4 sync: - LOD testing. - AnimatorSystems test setup. - AnimationTime and AnimationIndex per mesh. - Vector encoding/decoding.
This commit is contained in:
12
Runtime/Shaders/HLSL/SampleTexture2DArrayLOD.hlsl
Normal file
12
Runtime/Shaders/HLSL/SampleTexture2DArrayLOD.hlsl
Normal file
@ -0,0 +1,12 @@
|
||||
// References:
|
||||
// https://forum.unity.com/threads/hdrp-shader-graph-hybrid-instanced-instancing-now-working.886063/
|
||||
|
||||
#ifndef SAMPLE_TEXTURE2D_ARRAY_INCLUDED
|
||||
#define SAMPLE_TEXTURE2D_ARRAY_INCLUDED
|
||||
|
||||
void SampleTexture2DArrayLOD_float(Texture2DArray TextureArray, float2 UV, SamplerState Sampler, uint Index, uint LOD, out float4 RGBA)
|
||||
{
|
||||
RGBA = SAMPLE_TEXTURE2D_ARRAY_LOD(TextureArray, Sampler, UV, Index, LOD);
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user