- check_circle Misc
Published Feb 3rd, 2022, 2/3/22 5:16 pm
- 7,428 views, 7 today
- 548 downloads, 0 today
6
error_outlineI'm using a translation site!
You can edit assets/minecraft/shaders/include/config.glsl to change the camera position and rotation settings.
Description
A vanilla shader that can fix the relative camera position and rotation.
I borrowed the CoreShadersCustomTemplateRP.
Sites that I have used for reference
・https://minecraft.fandom.com/wiki/Shaders#Java_Edition
・https://github.com/ShockMicro/Minecraft-Shaders/wiki
・https://github.com/Godlander/objmc
Usage
Download the resource pack and place it under .minecraft\resourcepacks.
It is easy to get the camera setting you are aiming for by pressing F3 with the resource pack unplugged and checking the rotation of your camera.
Warning
・It only supports operation with 1.20.
・No optifine or mods needed.
・Only supports third-person forward or backward views.
Configuration
You can edit assets/minecraft/shaders/include/config.glsl to change the camera position and rotation settings.
Camera position
You can move the camera by entering the coordinates relative to the player. The default values are as follows.//X-coordinate
#define CAMERAX 0.0
//Y-coordinate
#define CAMERAY 0.0
//Z-coordinate
#define CAMERAZ -4.0
Camera position
You can rotate the camera by entering the same rotation value that you can see with F3. The default values are as follows.//Vertical rotation
#define ROTATEX 0.0
//Horizontal rotation
#define ROTATEY 0.0
//Tilt
#define ROTATEZ 0.0
My favorite camera settings
From diagonally down.//Coordinates relative to the player
From above.
//X-coordinate
#define CAMERAX -1.0
//Y-coordinate
#define CAMERAY -1.0
//Z-coordinate
#define CAMERAZ 1.0
//The angle at which you want to rotate.
//Vertical rotation
#define ROTATEX -40.0
//Horizontal rotation
#define ROTATEY 45.0
//Tilt
#define ROTATEZ 0.0//Coordinates relative to the player
//X-coordinate
#define CAMERAX 0.0
//Y-coordinate
#define CAMERAY 4.0
//Z-coordinate
#define CAMERAZ 0.0
//The angle at which you want to rotate.
//Vertical rotation
#define ROTATEX 0.0
//Horizontal rotation
#define ROTATEY 80.0
//Tilt
#define ROTATEZ 0.0
Progress | 100% complete |
Game Version | Minecraft 1.20 |
Resolution | 16x |
Tags |
tools/tracking
5470408
4
camera-fixation-5470408
Create an account or sign in to comment.
サイトでこのようなものをもっと見るのはクールです(今このようなものに非常に興味を持っている人として)!GitHubでShock Microのシェーダーウィキを参照しているのを見ました、ここに新しいバージョンがあります:https://github.com/McTsts/ Minecraft-Shaders-Wiki /(知らなかった場合に少し役立つかもしれません。もっと完全です)
Original:
Cool to see more of this stuff on the site (as someone super interested in this stuff right now)!
I saw you referred to Shock Micro's shader wiki on GitHub, there's a newer version here: https://github.com/McTsts/Minecraft-Shaders-Wiki/
(It could help a bit in case you didn't know. It is more complete)
I didn't know about the link you sent me! Thank you! I'll spread the word to my colleagues!