• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

RectangleTexture and repeat in fragment shader

Explorer ,
Dec 29, 2015 Dec 29, 2015

Copy link to clipboard

Copied

This sample is worked http://pastebin.com/B0eN8EGj

....

var texture:* = context3D.createTexture(bitmapData.width, bitmapData.height, Context3DTextureFormat.BGRA, false);
texture.uploadFromBitmapData(bitmapData);
context3D.setTextureAt(0, texture);

...

fragmentShader.assemble(Context3DProgramType.FRAGMENT,
   "tex ft1, v0, fs0 <2d, repeat, linear>\n"+

   "mov oc, ft1"
);

.....



If creat RectangleTexture:

var texture:* = context3D.createRectangleTexture(bitmapData.width, bitmapData.height, Context3DTextureFormat.BGRA, false);
texture.uploadFromBitmapData(bitmapData);
context3D.setTextureAt(0, texture);

app does not display anything.


How do I create a repeating RectangleTexture ?

TOPICS
Development

Views

180

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines