Search found 9 matches

  • Author
  • Message
by Labont
21 Mar 2024, 00:23
Forum: Other
Topic: How can i implement the Range Function from the Blur and Sharp effect?
Replies: 3
Views: 253

Re: How can i implement the Range Function from the Blur and Sharp effect?

If i get it right what you want, need to multiply pixeloffset by range, that's enough. Add next line after pixeloffset.y *= ScreenSize.z; for this, like pixeloffset *= BlurRange1; Sorry i didn't write properly, this is the actual CA code. float3 PS_ChromaticAberration(VS_OUTPUT_POST IN, float4 vPos...
by Labont
19 Mar 2024, 22:05
Forum: Other
Topic: How can i implement the Range Function from the Blur and Sharp effect?
Replies: 3
Views: 253

How can i implement the Range Function from the Blur and Sharp effect?

I want to implement the range function from the Blur and Sharp effects that are in enbpostpass to a Chromatic Abberation shader. I have made multiple tries but couldn't get it to work. Chromatic Abberation Effect : float3 PS_ChromaticAberration(VS_OUTPUT_POST IN, float4 vPos : SV_Position0) : SV_Tar...
by Labont
09 Mar 2024, 22:21
Forum: Other
Topic: How to export Rain and Weather info from ASI to shader in GTA 5?
Replies: 3
Views: 356

Re: How to export Rain and Weather info from ASI to shader in GTA 5?

ENBSeries wrote: 09 Mar 2024, 09:54 If you mean in to the shaders of enbseries, then there is an enbsdk with example how to do that. If to the game shaders - i don't know.
And how are external parameters such as Weather, TimeOfDay1 or TimeOfDay2 are exported from the dll to the .fx file?
by Labont
08 Mar 2024, 21:55
Forum: Other
Topic: How to export Rain and Weather info from ASI to shader in GTA 5?
Replies: 3
Views: 356

How to export Rain and Weather info from ASI to shader in GTA 5?

So, i'm trying to create an ASI plugin that allows to export live game info to shaders for GTA 5. I know that ENB already has those, but as i said, i'm trying to learn it. I came up with this but it doesn't works. float Rain = 0.0; void RainData() { int RainValue = GAMEPLAY::GET_RAIN_LEVEL(); if (Ra...
by Labont
05 Dec 2023, 23:19
Forum: Other
Topic: Making a smoother Contrast Equation
Replies: 1
Views: 5430

Making a smoother Contrast Equation

Hey i'm making a Contrast effect and i'm using this equation : color.rgb = (color.rgb - 0.5) * Contrast + 0.5;. However, it's not really smooth and creates dark areas. Any idea of another smoother equation?
by Labont
04 Oct 2023, 18:11
Forum: Other
Topic: How can i make a LUT Shader with a dropdown selector
Replies: 1
Views: 1895

How can i make a LUT Shader with a dropdown selector

Hey, i learned a lot of things and now i'm trying to make a LUT Shader, but idk how to make a shader for a dropdown selector that changes the lut texture which is 4096x64px. I'd also try to add a Intensity, Black/White Input and Black/White Output. So how do i proceed?
by Labont
29 Sep 2023, 23:30
Forum: Other
Topic: How to make Day/Night settings for CC effects in enbeffect.fx for GTA 5?
Replies: 1
Views: 2602

How to make Day/Night settings for CC effects in enbeffect.fx for GTA 5?

Following my previous topic, i'm now trying to make the CC Effects have a separate Day and Night Setting for GTA 5, i have an idea of how it should work but i dont know how to proceed.
by Labont
28 Sep 2023, 21:07
Forum: Other
Topic: How to make CC effects in GTA 5 work with UseOriginalPostProcessing enabled in enbeffect.fx?
Replies: 2
Views: 1124

Re: How to make CC effects in GTA 5 work with UseOriginalPostProcessing enabled in enbeffect.fx?

If you mean color correction, in the enbeffect.fx copy from #ifdef E_CC_PROCEDURAL till end of #endif //E_CC_PROCEDURAL all the code to the place before this line "r0.xyz = log2(r0.xyz);" and then just need to write new variables to match them. Like float3 color = r0.xyz; and later r0.xyz...
by Labont
27 Sep 2023, 23:49
Forum: Other
Topic: How to make CC effects in GTA 5 work with UseOriginalPostProcessing enabled in enbeffect.fx?
Replies: 2
Views: 1124

How to make CC effects in GTA 5 work with UseOriginalPostProcessing enabled in enbeffect.fx?

I use ENB v0.492 and i've been trying to make them work but i don't understand much from the Vanilla post processing code, so if any of you guys know how, please let me know, i just started learning HLSL and i'm trying to figure this out.