tototototototot

All posts tagged texture2d.as

Stage3D: how to setup ND2D to properly use ATF textures

ND2D doesn’t “entirely” support ATF textures (Adobe Texture Format). To solve this problem, just follow those steps: download the latest version of  “AGALMiniAssembler.as” actionscript file from Starling: https://github.com/PrimaryFeather/Starling-Framework/blob/master/starling/src/com/adobe/utils/AGALMiniAssembler.as In “Texture2D.as” of ND2D, add a public variable: [sourcecode language=’as3′]public var textureFormat:String = Context3DTextureFormat.BGRA;[/sourcecode] Always in “Texture2D.as“, add the following code  in the “textureFromATF” function : [sourcecode […]