#Shaders to emulate mob vision
41 messages · Page 1 of 1 (latest)
Have you also asked in the shaderLabs server? (however I see you're in it already)
I should have done it already
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?
Yes! Which ones do you want to do?
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?
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);
}
So, It would be for all mobs, but any ammount of them is cool
Yes, for spectated mobs as well, it is also compatible with the heads obtained in the "More Heads" resourcepack from Vanilla Tweaks
So, for your fragment shader, I need it to be like this to work (I copied missing things from blit too)
This one is that I used in the Showcase video (modified desaturation post)
Worth to mention that while I made it black and white, dogs/wolves vision would instead be like deuteranopia (red-green color blindness)
made a slime shader, tell me what you think and if I did the files correctly
It worked! So cool!
It was only missing the pack.mcmeta
Thank you, I'll put the pack mcmeta in thr next one. I'm making the bee
I can only see it tomorrow
The bee didn't worked
The shader is called but it renders the screen normally
Maybe there is some error in the json files
Yup, program/bee.json was pointing to blit instead of bee
trippy
@oblique kite, will you make more of them? How do you want to be credited? There's a link?
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
I made it like this
cool
@loop i think bee should see in hexagons
Let me cook
I struggled a lot trying to do it but I could not get it working, if you can do it than tell me, I am interested in knowing how it could work
is this part of the mod? I'm not seeing a folder for the head shaders
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.
ohh, ok. I thought that the mod was referencing a folder full of specific shaders somewhere else. The lesson here is RTFM folks!
https://www.shadertoy.com/view/4lfcR7 I found this, but I'm not the best at translating shadertoy into a regular .fsh file
I'll try later
A simple client-side Minecraft mod that allows you to see like a mob when wearing it's skull - A11v1r15/Skull_vision
I added it in the GitHub, but as Linguardium said, it can be included via resource packs