sam.price Posted June 22, 2016 Share Posted June 22, 2016 Hi, I am using a WidgetSprite to draw a texture that scrolls on the screen. I want only the part that is in the center of the screen visible. How should I go about doing that? If you look at the included images, I basically only want the part of the texture that is within the red box to be visible. Below is an example of that in our old in-house engine: Thanks, Sam Link to comment
silent Posted June 22, 2016 Share Posted June 22, 2016 Hi Sam, Maybe this thread will be helpful in your case? Basically, you need to write a small shader that will mask image by texture and assing this material to your WIdgetSprite object. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts