Xrayshader widget

Xrayshader widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Xrayshader widget

Post by Floris » 22 Feb 2015, 07:09

I used to like the xrayshader for that extra shiny polish, but it was too heavy on the cpu.

- speed optimization: 1.3x - 2x
- effect diminishes and gets disabled when having a low average fps
- get more intense with high camera distance
- intensity is a little more subtle in comparison with the old xrayshader


I don't know how well this works on ATI/AMD gpu's, since the old widget might have been connected with the 'green-screen' bug. But I don't know for sure. Could anyone elaborate on this old issue?
Attachments
gui_xray_shader.lua
22 february 2015
(8.07 KiB) Downloaded 16 times
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10228
Joined: 24 Jan 2006, 21:12

Re: Xrayshader widget

Post by PicassoCT » 22 Feb 2015, 16:30

will try it
0 x

User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Xrayshader widget

Post by zoggop » 23 Feb 2015, 21:32

Code: Select all

[f=0000000] Loading:  LuaUI\Widgets\gui_xray_shader.lua
[f=0000000] ERROR: 0:20: 'assign' :  cannot convert from 'Position 4-component vector of float' to 'varying 3-component vector of float'


[f=0000000] Xray shader compilation failed.
[f=0000000] false
[f=0000000] Error in Initialize(): [string "LuaUI\Widgets\gui_xray_shader.lua"]:162: bad argument #1 to 'GetUniformLocation' (number expected, got nil)
But then I'm using an Intel integrated, so this probably isn't the best test system.
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: Xrayshader widget

Post by Floris » 23 Feb 2015, 21:42

indeed... indeed.


must note that the widget has problems with disabling on lowfps. (my calcs are just wrong)
0 x

Post Reply

Return to “Lua Scripts”