Jump to content

Looking for Shader?


LaCubas

Recommended Posts

No need for a shader

local rt = dxCreateRenderTarget( 500, 500, true )
local x,y,z = -1981.938, 273.126, 34.2
local size = 2

dxSetRenderTarget( rt )
	dxDrawCircle ( 250, 250, 250, 0.0, 360.0, tocolor(255,255,255,50), -1, 32 )
dxSetRenderTarget( )

addEventHandler( "onClientPreRender", root, function( )
	dxDrawMaterialLine3D( x, y+size, z, x, y-size, z, rt, size*2, -6908161, x,y,z+1 )
end )
Spoiler

JCLV6dL.png

 

  • Like 1
Link to comment
17 hours ago, Mr.Loki said:

No need for a shader


local rt = dxCreateRenderTarget( 500, 500, true )
local x,y,z = -1981.938, 273.126, 34.2
local size = 2

dxSetRenderTarget( rt )
	dxDrawCircle ( 250, 250, 250, 0.0, 360.0, tocolor(255,255,255,50), -1, 32 )
dxSetRenderTarget( )

addEventHandler( "onClientPreRender", root, function( )
	dxDrawMaterialLine3D( x, y+size, z, x, y-size, z, rt, size*2, -6908161, x,y,z+1 )
end )
  Reveal hidden contents

JCLV6dL.png

 

The script works. But how to change the color?
When I change color color (255,0,0,50), then the color does not change and displays a warning.
Warning: <min_mta_version> section in the meta.xml is incorrect or mising (expected at least client 1.3.0 because function is being called outside certain events)

How to do it? Glow around texture
1.png

 

Link to comment
55 minutes ago, Mr.Loki said:

change color at line 10

delete "-6908161" and use tocolor()

to make objects glow just edit the code a bit


	dxDrawMaterialLine3D( x, y, z-size, x, y, z+size, rt, size*2, tocolor(150,150,255) )

and use the x,y,z of the object

I changed the color, but the mistakes remained. How can they be removed?
And how to make texture glow?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...