Upgraded original RothenburgAR to Unity version 2017.4.5f1 (and upgrading from standalone vuforia to the version integrated in unity)
This commit is contained in:
33
Assets/Vuforia/Shaders/VertexLitWithZ.shader
Normal file
33
Assets/Vuforia/Shaders/VertexLitWithZ.shader
Normal file
@@ -0,0 +1,33 @@
|
||||
//==============================================================================
|
||||
//Copyright (c) 2013-2014 Qualcomm Connected Experiences, Inc.
|
||||
//All Rights Reserved.
|
||||
//==============================================================================
|
||||
|
||||
Shader "Transparent/VertexLit with Z" {
|
||||
Properties {
|
||||
_Color ("Main Color", Color) = (1,1,1,1)
|
||||
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
|
||||
}
|
||||
|
||||
SubShader {
|
||||
Tags {"RenderType"="Transparent" "Queue"="Transparent"}
|
||||
// Render into depth buffer only
|
||||
Pass {
|
||||
ColorMask 0
|
||||
}
|
||||
// Render normally
|
||||
Pass {
|
||||
ZWrite On
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
ColorMask RGB
|
||||
Material {
|
||||
Diffuse [_Color]
|
||||
Ambient [_Color]
|
||||
}
|
||||
Lighting On
|
||||
SetTexture [_MainTex] {
|
||||
Combine texture * primary DOUBLE, texture * primary
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user