If you have Q3ASE 1.5 or better, using Internet Explorer with
ActiveX and VBScript enabled, you should see the textures/sfx/console03
shader on the left.
It is being pulled off the net from a mini-pk3 containing just the
textures and the Images and shader courtesy of id software. |
.shader file from it, grab one
specific shader from that file, and put it on a piece of 2D geometry.PrepareSetup (no parameters) - call this before making any other setup callsAddZip "server address" - fetch a zip/pak file from server and use it as a resource. You can add as many paks as you want. Caching is subject to IE's caching. Example : Shader1.AddZip "http://www.bpeers.com/software/q3ase/q3asex-demopak.pk3". Returns zero in case of failure.
OpenShaderFile "filename" - search all added pak files for a shader file with this name, and open it. Returns the amount of parse errors, so zero is actually a success code here. Example : Shader1.OpenShaderFile "scripts/sfx.shader"GetShader "shadername" - search all open shader files for a shader with this name and make it the shader to be used for rendering. Returns zero if the shader is not found. Example : Shader1.GetShader "textures/sfx/console03"CreateRect width, height, s-repeat, t-repeat, tesselation-distance - create a 2D rectangle whose mesh will be used to render. 'width' and 'height' would typically match the Width and Height attributes you with the <OBJECT> tag. Example : Shader1.CreateRect 256, 256, 1, 1, 256FinishSetup - Finish up all of the above setupBackground - color used to clear the background. Format is 00RRGGBB. Example : Shader1.Background = &H00FF0000 : set to bright blueTimeDelta - a timeoffset used when showing the shader. Example : Shader1.TimeDelta = -1 : lag this shader one second. May be set outside Prepare/FinishSetup