Author Topic: How to make flare for lights with shader files  (Read 15276 times)

BillyRazOr2014

  • Posts: 6
  • Turrets: +0/-0
    • Billy's Tremlous Mapping Blogspot
How to make flare for lights with shader files
« on: September 14, 2014, 04:44:56 pm »
Guys, how to make flare for lights with shader files? I'm really want to make it for my mapping...

http://effextures.com/wp-content/uploads/2013/08/Effextures-Light14.jpg

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: How to make flare for lights with shader files
« Reply #1 on: September 15, 2014, 09:20:39 pm »
how to make flare for lights with shader files? I'm really want to make it for my mapping...
flares aren't created by creating specific "flare shader" files. any shader (texture) can be used for flares. flares are placed on maps by spawning misc_light_flare entities. for example, the following entity definition creates a small, redish light flare:1
Code: [Select]
{
"classname" "misc_light_flare"
"origin" "0 0 0"
"radius" "16.5"
"targetShaderName" "models/weapons/prifle/flash"
}

1 not tested

Minder

  • Posts: 1
  • Turrets: +0/-0
Re: How to make flare for lights with shader files
« Reply #2 on: August 04, 2016, 07:46:38 am »
Guys, how to make flare for lights with shader files? I'm really want the instant knockout to make it for my mapping...


When I type misc_light_flare nothing happens for some reason. Am I missing something?
« Last Edit: April 13, 2017, 10:43:08 am by Minder »

amz181

  • Posts: 919
  • Turrets: +64/-93
Re: How to make flare for lights with shader files
« Reply #3 on: August 05, 2016, 04:14:54 pm »
Have you correctly entered all of the fields listed in humancontrollers post? (classname, radius, targetShaderName (origin should be automatically entered, as should classname)).

Just copy what he's written exactly into a misc_light_flare entity, and it should work. You'll get a red flare if you use "models/weapons/prifle/flash"

To get other flares you have to change the path to a different lens flare texture, i.e. "textures/niveus/flare_red_01" is a red flare from niveus.

CharlesWagner

  • Posts: 3
  • Turrets: +0/-0
Re: How to make flare for lights with shader files
« Reply #4 on: June 15, 2019, 10:33:18 pm »
Have you correctly entered all of the fields listed in humancontrollers post? (classname, radius, targetShaderName (origin should be automatically entered, as should classname)).

Just copy what he's written exactly into a misc_light_flare entity, and it should work. You'll get a red flare if you use "models/weapons/prifle/flash"

To get other flares you have to change the path to a different lens flare texture, i.e. "textures/niveus/flare_red_01" is a red flare from niveus.

It works for me. Needed for a project and all the flares are working fine.