Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83471362
InvisibleShader.shader
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 17, 07:57
Size
964 B
Mime Type
text/x-c
Expires
Thu, Sep 19, 07:57 (2 d)
Engine
blob
Format
Raw Data
Handle
20843905
Attached To
R12544 Sesame - Unity Project
InvisibleShader.shader
View Options
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// NOTE: MRTK Shaders are versioned via the MRTK.Shaders.sentinel file.
// When making changes to any shader's source file, the value in the sentinel _must_ be incremented.
Shader "Mixed Reality Toolkit/InvisibleShader" {
Subshader
{
Pass
{
GLSLPROGRAM
#ifdef VERTEX
void main() {}
#endif
#ifdef FRAGMENT
void main() {}
#endif
ENDGLSL
}
}
Subshader
{
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct v2f
{
fixed4 position : SV_POSITION;
UNITY_VERTEX_OUTPUT_STEREO
};
v2f vert(appdata_base v)
{
v2f o;
UNITY_SETUP_INSTANCE_ID(v);
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
o.position = fixed4(0,0,0,0);
return o;
}
fixed4 frag() : COLOR
{
return fixed4(0,0,0,0);
}
ENDCG
}
}
}
Event Timeline
Log In to Comment