• Problem with Entity:SetMaterial
    2 replies, posted
So basically I've been working with ClientsideModels, and I tried to apply a CS:S texture to it, but the result was rather... disappointing. [CODE]de_chateau/bricki01a[/CODE] (Texture doesn't apply) [IMG]https://2.bp.blogspot.com/-CDn2hyXo2G8/WSBcjVQUjUI/AAAAAAAACVo/r_agceYeYhYpqicgtIXl7Q12htqzVOJcQCLcB/s1600/gms_atoll_20080002.jpg[/IMG] [CODE]brick/brick_model[/CODE] (Material from the Material tool list) [IMG]https://3.bp.blogspot.com/-N-qccmjPxxw/WSBcjnZlxkI/AAAAAAAACVs/7GdnT1g-eSswCWxC175pdc8xyFnKhg3NACLcB/s1600/gms_atoll_20080001.jpg[/IMG] Any material in the Material tool list works fine, but any other doesn't. Does that mean that I have to create a material with CreateMaterial?
You cannot apply world materials on models. Your material [b]must[/b] have the VertexLitGeneric shader to be applicable on models. Map textures have LightmappedGeneric shader. Shader is defined by the first line of a .vmt file.
[QUOTE=Robotboy655;52253812]You cannot apply world materials on models. Your material [b]must[/b] have the VertexLitGeneric shader to be applicable on models. Map textures have LightmappedGeneric shader. Shader is defined by the first line of a .vmt file.[/QUOTE] I'll have to either find another texture or create a material for that. Thanks for the reply!
Sorry, you need to Log In to post a reply to this thread.