Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local size = 64
- local count = size*size
- local pos = Vector(4907, -4788, -7257)
- local wire = Material("models/wireframe")
- hook.Add("RenderScreenspaceEffects", "asdasd", function()
- cam.Start3D(EyePos(), EyeAngles())
- render.SetMaterial(wire)
- local mat = Matrix()
- mat:Translate(pos)
- cam.PushModelMatrix(mat)
- mesh.Begin(MATERIAL_TRIANGLE_STRIP, count)
- for x = 0, size do
- for y = 0, size do
- mesh.Position(Vector(x, y, 0))
- mesh.Normal(Vector(0, 0, 1))
- mesh.TexCoord(0, x/size, y/size)
- mesh.AdvanceVertex()
- end
- end
- mesh.End()
- cam.PopModelMatrix()
- cam.End3D()
- end)
Advertisement
Add Comment
Please, Sign In to add comment