Jump to content

FireProceduralTexture and alpha


Dad72
 Share

Recommended Posts

Hi,

 

I test the procedural textures and it's really cool and simple. I think this can not be simpler.
 
But there is something that makes me think of a bug. FireProceduralTexture on the black parts should not be transparent?
 
playground:
 
Thanks DK and Etienne, This V2 gonna be awesome. (ca vas tout déchirer  :D )
Edited by dad72
Link to comment
Share on other sites

Ok I am going to add an alphaThreshold property on the FireProceduralTexture to make you capable of saying : "I want to activate alpha on a specific pixel only when it hits a specific level of luminance".

 

Stay tuned, I will keep you updated when it is available and you will be able to give me feedbacks.

 

Meulta

Link to comment
Share on other sites

Hello dad72,

 

This is now available. You have a alphaThreshold (number between 0.0 and 1.0) property available in the FireProceduralTexture like in the sample here : http://www.babylonjs-playground.com/#1ERYAL

  • 0.5 is the default value. 
  • smaller value will make the texture more opaque
  • bigger value will make the texture more transparent

 

Is it better?

 

Meulta

Link to comment
Share on other sites

Hi,

 

I see you still use opacityTexture which makes less vivid image.

 

In fact I just saw the normal texture without opacityTexture and implement transparent, this which is black, but maybe it is not technically possible. i dunno.

 

See the difference between the two. a is more fade:


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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...