• Render target as a model material?
    3 replies, posted
How can I use a render target as a models material?
[lua] local rt = GetRenderTarget(bla bla bla) local mat = CreateMaterial("sumname","VertexLitGeneric",{}) mat:SetMaterialTexture("$basetexture",rt) [/lua] Untested [editline]7th December 2010[/editline] Just set the entity's material to mat
[QUOTE=ralle105;26548049] Just set the entity's material to mat[/QUOTE] Strange. When I set this material to a DImage, it shows it , but when I try to set it for an entity nothing happens.
There's probably some other values that need setting ($model 1 from the top of my head)
Sorry, you need to Log In to post a reply to this thread.