Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Halo render.SuppressEngineLighting #1113

Merged
merged 3 commits into from Mar 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions garrysmod/lua/includes/modules/halo.lua
Expand Up @@ -55,6 +55,7 @@ function Render( entry )
-- Render colored props to the scene and set their pixels high
cam.Start3D()
render.SetStencilEnable( true )
render.SuppressEngineLighting(true)
cam.IgnoreZ( entry.IgnoreZ )

render.SetStencilWriteMask( 1 )
Expand All @@ -66,6 +67,7 @@ function Render( entry )
render.SetStencilFailOperation( STENCIL_KEEP )
render.SetStencilZFailOperation( STENCIL_KEEP )


for k, v in pairs( entry.Ents ) do

if ( !IsValid( v ) ) then continue end
Expand All @@ -89,6 +91,7 @@ function Render( entry )
cam.End2D()

cam.IgnoreZ( false )
render.SuppressEngineLighting(false)
render.SetStencilEnable( false )
cam.End3D()

Expand Down