maximumdrive Posted November 21, 2018 Share Posted November 21, 2018 Hi all, is it possible to get a world position of a shader, applied to the only one object? Easier to say, is there a kind of an getElementPosition() analogue or the way to create it, which could allow to know applied shader's/object's specified texture's world position? Link to comment
maximumdrive Posted November 21, 2018 Author Share Posted November 21, 2018 (edited) 3 hours ago, Gordon_G said: I didn't understand Look, just imagine a vehicle with the shader applied on it's specific part using engineApplyShaderToWorldTexture(). I just want to know if it is possible to know the world position of that point, where the shader is applied. UPD: I just thought of getting pixels/screen position and using getWorldFromScreenPosition(), but I don't know in which way could I use that correctly. Edited November 21, 2018 by maximumdrive Link to comment
Discord Moderators Pirulax Posted November 21, 2018 Discord Moderators Share Posted November 21, 2018 You can do that in the shader itself actually. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now