跳到正文

Velvet

作者:Cammie

A Fabric & NeoForge library to help with shader usage, based off of Satin

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。


Velvet is a multiloader library for making and using your own OpenGL shaders based off of Satin. I highly suggest supporting the Satin developers, but don’t pester them with bug reports if you’re using Velvet.

For documentation, Satin’s wiki) will provide you with everything. Some class and method names are different, as Velvet renames them to match Mojmap names.


Adding Velvet to your project

If your project is Fabric only, please use Satin instead.

You can add Velvet by putting the following in your build.gradle:

repositories {
	maven {
		name = "Up-Mods & Cammie's Corner"
		url = "https://maven.uuid.gg/releases"
	}
}

For Fabric (Ignore this if you’re only using NeoForge):

dependencies {
	modImplementation "dev.cammiescorner.velvet:Velvet-Common:${velvet_version}"
	modImplementation "dev.cammiescorner.velvet:Velvet-Fabric:${velvet_version}"
	
	// If you want to jar-in-jar Velvet
	include "dev.cammiescorner.velvet:Velvet-Common:${velvet_version}"
	include "dev.cammiescorner.velvet:Velvet-Fabric:${velvet_version}"
}

For NeoForge:

dependencies {
	implementation "dev.cammiescorner.velvet:Velvet-Common:${velvet_version}"
	implementation "dev.cammiescorner.velvet:Velvet-NeoForge:${velvet_version}"
	
	// If you want to jar-in-jar Velvet
	jarJar(dev.cammiescorner.velvet:Velvet-Common:${velvet_version}) {
		transitive = false
		version {
			strictly "[${velvet_version},)"
			prefer ${velvet_version}
		}
	}
	jarJar(dev.cammiescorner.velvet:Velvet-NeoForge:${velvet_version}) {
		transitive = false
		version {
			strictly "[${velvet_version},)"
			prefer ${velvet_version}
		}
	}
}

Then add the library version to your gradle.properties file:

# Velvet version
velvet_version=0.x.x

Or your libs.versions.toml file if you’re using one of those instead:

# Velvet version
velvet_version = "0.x.x"

For the latest version of Velvet, please check the GitHub Releases.


The Discord icon, which is a blue circle with half in shadow. In the middle is a weird little robot-helmet-looking-thingy.

      

The Ko-Fi logo, a sky-blue circle with a white coffee mug with a red heart on it in the middle.

常见问题

Velvet 支持哪些 Minecraft 版本?

Velvet 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Velvet 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

Cammie 的其他作品

查看全部 →