Help with converting script DELETE ME
delete please
Hi
I've been trying to convert the following javascript to c# but with no success so far.
I've tried to use this converter to convert it but there are three variable types I need to fix which I haven't been able to yet. The parts that need to be changed are the ones called FIXME_VAR_TYPE. If anyone are able to help out it'd be much appreciated!
Answer by Jessespike · Dec 02, 2015 at 09:58 PM
Delete the [code] attribute
FIXME_VAR_TYPE extrusionDistance= 20.0f;
Look at the value "20f", you can assume the var type is a float.
FIXME_VAR_TYPE dir= -shadowLight.transform.forward;
FIXME_VAR_TYPE pos= shadowLight.transform.position;
These are Vector3s
lightPos = Vector4(dir.x,dir.y,-dir.z,0.0f);
Should be: new Vector4
Your answer
Follow this Question
Related Questions
Adding Shader Graph to normal project 0 Answers
Converting GLSL Shaders 3 Answers
Tint Multiple Textures Separately 1 Answer
how do i fix a black texture/shadow? 1 Answer
importing log captured by renderdoc in unity3d and processing it 0 Answers