Might be a silly question, but how do I texture a Rectangle POP?
With a Rectangle SOP it’s quite easy and efficient to do this with a Material SOP for example, however when I try different methods (Lookup, Texture Map) I can’t get it to work.
Might be a silly question, but how do I texture a Rectangle POP?
With a Rectangle SOP it’s quite easy and efficient to do this with a Material SOP for example, however when I try different methods (Lookup, Texture Map) I can’t get it to work.
Different POPs can add a Tex attribute, but mapping a texture on a POP can only be done with a Geometry.
It appears when you try to apply a GLSL Material to a POP geometry. you would need a way to apply UV operations to the texture of the object, but the Tex attribute is Vertex based.
A GLSL Mat that works with Rectangle SOPs, now used with Rectangle POP gives the following error:
A MAT is using texture coordinates, but the SOP being used with it does not have UV attributes. UV (uv) attributes can be created with the Texture SOP. (/project1/base1/render1)
Is there something I’m missing, which POPs would be able to add the required Tex attribute?
How is the texture attribute accessed in the shader?
In this example, TDTexAttrib_Tex() returns the Tex vertex attribute.
GLSLMatAndPOPVertexTex.toe (6.0 KB)