Good morning
Where is a demo and information the VividGl-3d?
Can I use blitz code with VividGl-3D'
Thanks.
Where is a demo and information the VividGl-3d?
Can I use blitz code with VividGl-3D'
Thanks.
Function skin_BlurTexture() ;BlurTexture ; ;This fxskin blurs textures per pixel. ;Use skin_blurFactor(skin,blurFactor#) ;to increase/decrease blur. 0=no blur. 0.1=alot of blur. ;uses pixel shaders. outSkin=glFxSkin() PixS=loadPixelshader(outSkin,shaderFolder+"Texture_Blur1.cg") skin_InitShader(pixS) blurPar=glInitShaderPar(pixS,"blur",spFloat4,spWhenOn) fx.fxSkin=Object.fxSkin(outskin) fx\pp[0]=blurPar fx\pShad=Object.shader(pixS) Return outSkin End Function
do Cls_Rgb() Viewport_Resize(0,0,fxRes,fxRes) FxSkin_On(zColorSkin) Entity_Render(room) Batch_Render(carsBatch) ; Entity_Render(skybox) fxSkin_Off() Texture_Grab depthTexture,0,0 Cls_Z() Entity_Render(room) Batch_Render(carsBatch) Entity_Render(skyBox) Texture_Grab colorTexture,0,0 Viewport_Resize(0,0,GraphicsWidth(),GraphicsHeight()) Cls_Z() lock2d() fxSkin_On(blurSkin) ;fxSkin will now be used on all 2d ops. Per Pixel gpu-fx on 2d in other words. activate_texture(depthTexture,0) activate_texture(ColorTexture,1) Render_Quad(0,0,GraphicsWidth(),GraphicsHeight()) fxSkin_Off() unlock2d() deactivate_textures() Vivid_Flip() loop