How do i get the 'Vector pointing towards the point the shading point is being viewed from.'

Godot Version

4.3

Question

` I’m trying to recreate a shader I made in blender, I need the vector of the camera to the mesh to do that but I don’t know how to type it/code to use. Googling around I found some suggestions but they create a static definition, I need one that updates every frame. The blender definition of the function im trying to recreate is ‘Vector pointing towards the point the shading point is being viewed from.’.

// fetch the normals, light vector and viewing vectors
// LIGHT 	// light vector in view sapce
// NORMAL 	// surface normals in view space
// VIEW		// cmera view in view space already normalised

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.