Jump to content

How to render to texture?


Jmac

Recommended Posts

I use a postFX as a tool to update a texture manipulated inside a shader.


You can see what I tried in this resource:

http://forums.torque3d.org/viewtopic.php?f=23&t=714


You see that in the PostFX MapTest I chooose the target to be a named texture "#maptexture".

Also check the functions related to MapTest like the function MapTest::setShaderConsts(%this).


But named textures are "special" "named" textures in the engine. I'm not sure if it'll help you in your particular case.

Maybe the c++ code I mention at the start can help you to change a named texture into a generic texture if you need that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...