Jump to content

Specular on transparency


Icare
 Share

Recommended Posts

Hi,

 

I prefer to open another post rather than using that of another guy.

 

I was just looking to do a simple transparency effect with the specular.

 

I tried all shaders none can do it, a little help please.

 

Nicolas

Link to comment
Share on other sites

I haven't tried, but I would think you need to create an identical directional light in the foreground world as in your normal world, and use the _specular shader for your transparent objects in the foreground world. You would need to disable all shadows, since they are already cast in the normal world.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

thank, I'll try it tonight.

 

If I use the framework I must do :

 

Global fw:TFramework = TFramework.Create()
SetWorld( fw.background.world)
'
'here my code for light in foreground world
'
SetWorld( fw.main.world)

 

 

Nicolas

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...