with set color of render.DrawSphere not setting with material.
4 replies, posted
i try this, it draws the sphere with the material but the color wont set. what am i doing wrong?
local mat = Material( "models/shadertest/shader4" )
render.SetMaterial(mat)
render.DrawSphere( self:GetPos(), 500, 30, 30, Color( 0, 100, 0, 50 ) )
try putting render.SetColorMaterial() between the first and second property
that just gets rid of the material & makes a colored sphere, also makes it so you can only see it from the outside.
Oh okay, I apologize. Still learning as well! I found this old topic from around 4 years ago that seems to be the same thing you're trying to do (drawing a sphere with material and color)
Am I drawing an invisible spheres ?
Let me know if that helps
yeah that helped thank you.
Sorry, you need to Log In to post a reply to this thread.