drarem Posted April 6, 2016 Posted April 6, 2016 Trying to rotate a 2D image I've loaded, is it possible? Getting a nil function call on :SetRotation.. self.img1 = Texture:Load("Materials/test.tex") self.img1:SetRotation(...) attempt to call method 'SetRotation' (a nil value) Quote
martyj Posted April 6, 2016 Posted April 6, 2016 There is no set rotation on a texture. http://www.leadwerks.com/werkspace/page/api-reference/_/texture/ Quote
drarem Posted April 6, 2016 Author Posted April 6, 2016 Maybe a sprite is the way to go with that. 1 Quote
macklebee Posted April 7, 2016 Posted April 7, 2016 posted a shader that allows you to set the rotation last year: http://www.leadwerks.com/werkspace/topic/13422-draw-image-mirror-options/#entry94355 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
tjheldna Posted April 7, 2016 Posted April 7, 2016 Yep you can rotate a texture but not in the way your thinking. You can use this in the same way you would set the blend or color. http://www.leadwerks.com/werkspace/page/api-reference/_/context/contextsetrotation-r727 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.