Make Edge Render have a Fog Option

Edge render needs an option to turn on fog interaction

1 Like

Agree! fancy doing a PR?

Yeah… I know I’m gonna have to… :slight_smile: haha, once I get some time here I am on it for sure.

You know it is good to do some PR :wink:

<3 Yeah and it’s good for me, thanks for the encouragement. Ill prolly give it a shot this afternoon instead of answering questions on the forum.

Both are really important for the community. If you can’t do the PR (as I think it is a really good idea) just add a new issue so we can track the need

No I for sure can, I just get scared of doing node build for some reason… even though its not that hard. I have have it in the back of my head that I struggle with it… and I need to break myself of that thought.

1 Like

Definitely :smiley:

1 Like

I have today off so I am going to get to this now.

1 Like

I just noticed in the docs it says:

effect.setFloat4(“vFogInfos”, scene.fogMode, scene.fogStart, scene.fogEnd, scene.fogDensity);

but shouldn’t that be like:
effect.setFloats(“vFogInfos”, [scene.fogMode, scene.fogStart, scene.fogEnd, scene.fogDensity]); ?
it might not be this, but I dont think that that setFloat4 is a method on a ShaderMaterial.

Or am I doing something wrong?

Effect has a setFloat4 method

1 Like

ohh dumb dumb dumb. I gotcha I gotta do this._lineShader.getEffect() then?

rabble rabble rabble… I think I have most of it figured out (at least from a shader side) now I just need to get this damn TS file to cooperate…

Gonna walk away go have my coffee relax of a second and think about this.


Lol I’m with you buddy :smiley:

Until I figure out why my TS files are not updating there is not much I can do about this update.

And this is important (To be able to compile the project I meant ;))

Im going to try on some other files as soon as I get a chance here…

On saturday I hurt my elbow pretty bad in a fall, (god I need to stay off skateboards…) so I kinda dropped everything for a day or two.

Once I get caught up on my paid work I’ll get back at this.

Sorry my friend…Take care!

I was looking to see if this was possible, really could use this, I was actually surprised to find out that the lines were shinning through the fog as if fog wasn’t there then realised it was likely a shader, so I was going to suggest this and was happy to see it was recently being worked on, brilliant! Just thought I’d let you know how stoked I am for this coming update. One question though is, will this have its own toggle for fogEnabled or will it just be going by the meshes setting? I think having a separate toggle would open up new possibilities as some people might want to see edges through fog but not the mesh itself.

Edit: I just realised this topic is a year old, the date display shows just Aug 19 and I didn’t realise is is Aug 19’ the comma after 19 meaning year not day… my bad, but seeing this never became a feature or at least that I can find is kinda sad x.x unless I’m missing something?

This got lost in the humdrum. If I get some free time maybe can look back into this. Pretty stacked right now.