то же самое

This commit is contained in:
lapich committed 2026-10-11 19:16:11 +03:00
1 parent 090cdc9933
commit ac99977be3
534 files changed
+36990 -48

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
//
// This file is part of the Tremble package by Tiny Goose.
// Copyright (c) 2024 TinyGoose Ltd., All Rights Reserved.
//
Shader "Unlit/NoDraw"
{
// This is an incredibly dumb shader, until such time as I can split render and collision
// meshes up easily. It just discards all pixels thrown at it :)
Properties
{
}
SubShader
{
Tags { "RenderType"="Opaque" "ForceNoShadowCasting"="On" }
LOD 100
Pass
{
CGPROGRAM
#pragma vertex EmptyVertex
#pragma fragment EmptyFragment
// Do literally nothing
void EmptyVertex() { }
// Discard all pixels, or failing that output a transparent one
fixed4 EmptyFragment() : SV_Target
{
discard;
return fixed4(0., 0., 0., 0.); // Required on Metal
}
ENDCG
}
}
}