#Shaders to emulate mob vision

41 messages · Page 1 of 1 (latest)

warm timber
#

I just made a mod to be able to see custom post-processing shaders using heads, but there's too few of them avaiable. I would like someone to code/design more shaders like so to make it more fun!

modrinth Link of the mod
Showcase:
#1176238857260380240 message

timber current
#

Have you also asked in the shaderLabs server? (however I see you're in it already)

warm timber
#

I should have done it already

oblique kite
#

hi, I would like to make some of those shaders, should I made those using the sametype of glsl codes that I would use in resource packs?

warm timber
oblique kite
#

do you need shaders for ALL mobs of only for "headed" ones?

#

I mean do the mod let you add a custom vision to all spectated mobs or just add the shaders for the heads?

oblique kite
#

btw I just did for testing a wolf head shader (black and white) tell me if I have to change something. I modified the blit post processing shader into a resource pack.

#
#version 150

uniform sampler2D DiffuseSampler;

uniform vec4 ColorModulate;

in vec2 texCoord;

out vec4 fragColor;

void main(){
    vec3 color = (texture(DiffuseSampler, texCoord) * ColorModulate).rgb;

    color = vec3((color.r + color.g + color.b)/3);

    fragColor = vec4(color, 1.0);
}
warm timber
warm timber
warm timber
#

So, for your fragment shader, I need it to be like this to work (I copied missing things from blit too)

#

Worth to mention that while I made it black and white, dogs/wolves vision would instead be like deuteranopia (red-green color blindness)

oblique kite
warm timber
#

It worked! So cool!
It was only missing the pack.mcmeta

oblique kite
#

Thank you, I'll put the pack mcmeta in thr next one. I'm making the bee

oblique kite
warm timber
#

I can only see it tomorrow

warm timber
warm timber
#

The shader is called but it renders the screen normally

oblique kite
#

Maybe there is some error in the json files

warm timber
#

Yup, program/bee.json was pointing to blit instead of bee

warm timber
oblique kite
#

my bad

#

thx btw

warm timber
#

@oblique kite, will you make more of them? How do you want to be credited? There's a link?

oblique kite
#

I'll make 1 or 2 more, about the credit you can put it if you want as "theRealLoopdev" (with the camelCase)

#

I don't need to be credited tho

warm timber
oblique kite
#

cool

echo wyvern
oblique kite
oblique kite
unkempt hollow
#

is this part of the mod? I'm not seeing a folder for the head shaders

vale fable
#

head shaders are included like any resource pack files

You can add your own post-processing shaders using a resourcepack too, you only needs to put the json file with the same name as the mob in assets/minecraft/shaders/post and all necessary files of the shader.

unkempt hollow
#

ohh, ok. I thought that the mod was referencing a folder full of specific shaders somewhere else. The lesson here is RTFM folks!

unkempt hollow
warm timber
warm timber