Hi, I am a noob when it comes to Urho3D and game development in general, so this is probably a very noobish question
I am working on a shader which requires me to know the dimensions of the window.
I know that I can pass this information to the shader using a Shader Parameter, but I was wondering if there is a “proper” way to do this (as I would have to update that parameter each time the window size changes). E.g. I thought that cGBufferInvSize was something that I could use for this but it doesn’t seem to give me the right results.
If the proper way to do it is to change the value manually from the game code, I would like to know if there is a resize event that I can subscribe to, to do so ?
Currently I know how to set the proper size at startup and how to update it each frame.
Once that stuff works properly, I may have something to show you that may or may not be useful for other Urho3D users :mrgreen:
Thanks for creating such an awesome open source engine
It’s really the only engine (that’s not dead) I found that offers all of the basic features I expect to need while still being simple to use and understand due to its clean source code and decent documentation.
Being able to develop an application in C++ using the tools that the engine offers in a relatively straightforward manner is something that I have been searching a long time for.
Most engines either don’t have enough features, are complicated to use, or make you modify a “template game” in a scripting language.
So keep going ! You have created an awesome and unique engine