Welcome, Guest.
Username: Password: Remember me

TOPIC: Cel/Cartoon/Anime shader

Cel/Cartoon/Anime shader 2 weeks 9 hours ago #1

I wanted to share a shader i wrote to recreate drawing/anime/manga effects.
  • lining
  • shading
  • saturation

Link
https://github.com/AlucardDH/dh-reshade-shaders/blob/master/Shaders/dh_anime.fx

Original


Examples




Any feedback is wellcomed :)
The administrator has disabled public write access.
The following user(s) said Thank You: Viper_Joe

Cel/Cartoon/Anime shader 1 week 2 days ago #2

When I activate this shader, the whole screen just turns into a blank color. How do I fix this?
The administrator has disabled public write access.

Cel/Cartoon/Anime shader 1 week 2 days ago #3

I got the same issue
The administrator has disabled public write access.

Cel/Cartoon/Anime shader 1 week 2 days ago #4

If the 'SV_Position' semantic is added before the 'TEXCOORD0' one it works. (in D3D11 that is)
Is that a bug in ReShade?

Change
void PS_Input(in float2 coords : TEXCOORD0, out float4 outNormal : SV_Target, out float4 outBlur : SV_Target1)
to
void PS_Input(float4 vpos : SV_Position, float2 coords : TEXCOORD0, out float4 outNormal : SV_Target, out float4 outBlur : SV_Target1)

And
void PS_Manga(in float2 coords : TEXCOORD0, out float4 outPixel : SV_Target)
to
void PS_Manga(float4 vpos : SV_Position, float2 coords : TEXCOORD0, out float4 outPixel : SV_Target)
The administrator has disabled public write access.
The following user(s) said Thank You: AlucardDH

Cel/Cartoon/Anime shader 1 week 2 days ago #5

Not a bug, just a D3D11 limitation (pixel shader always need SV_Position input).
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: AlucardDH

Cel/Cartoon/Anime shader 1 week 1 day ago #6

Thanks for the info, i pushed the fix to github.
The administrator has disabled public write access.