Question by
jwilliams_aisol · Mar 11, 2016 at 06:06 PM ·
shaderspaceprojector
Unity Projector going past far clip plane
So you can see that the projector (on the right of the image) has a clip plane shorter than what's actually being projected.
I'm trying toput a solid circle swath directly below a spacecraft as it orbits.
For the shader, I'm using a custom shader to get the solid color projection. It is as follows:
Shader "Projector/Additive Tinted"{
Properties{
_Color("Main Color", Color) = (1,1,1,1)
_ShadowTex("Cookie", 2D) = "white" {}
_FalloffTex("FallOff", 2D) = "white" {}
}
Subshader{
Pass{
ZWrite off
Fog{ Color(1,1,1) }
ColorMask RGB
Blend One One
SetTexture[_ShadowTex] {
constantColor [_Color]
combine texture * constant, ONE - texture
Matrix[_Projector]
}
SetTexture[_FalloffTex] {
constantColor(0,0,0,0)
combine previous lerp(texture) constant
Matrix[_ProjectorClip]
}
}
}
}
Help anyone?
2016-03-11-12-57-32.png
(519.5 kB)
Comment
Bump. I am having a similar issue with projectors.
Your answer
![](https://koobas.hobune.stream/wayback/20220612071423im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Projector and Shader with modified Vertices 0 Answers
problem w/ projector 0 Answers
Need help with projector shader 4 Answers
Proper working atmosphere shader in Unity 2018. 1 Answer
How to change parts of an objects color through scripting? 0 Answers