当前位置:网站首页>Shader顶点着色器修改顶点高度的一个思路
Shader顶点着色器修改顶点高度的一个思路
2022-07-28 14:10:00 【ttod】
有时候希望通过某些图片信息或者渐变信息或者数组之类的内容来使用Shader顶点着色器修改顶点高度,这时候会发现一个问题,顶点着色器中无法使用纹理采样,而ShaderGraph的Gradient属性即无法exposed也无法使用代码修改,而Shader或者ShaderGraph也无法使用数组属性。这时候可以考虑的办法是使用C#脚本让图片或者渐变或者数组之类的内容来决定物体的顶点颜色,然后在Shader或者ShaderGraph中通过顶点颜色来决定顶点高度。
边栏推荐
- 云上安全主要面临的威胁有哪些
- Knowledge map Foundation (I) - what is knowledge map
- 安全与隐私计算在国内发展现状
- UTF-8、UTF-16 和 UTF-32 字符编码之间的区别?[图文详解]
- C language program: judging triangles
- 多商户商城系统功能拆解17讲-平台端订单列表
- The first self introduction quotation
- Multi merchant mall system function disassembly lecture 17 - platform side order list
- 企业微信客服链接,企业微信客服聊天
- Buuctf partial solution
猜你喜欢

Redis configuration file explanation

Product Manager

buuctf_ php

Compose learning notes 2 - launchedeffect, status and status management
Node.js+express realizes the operation of MySQL database

多商户商城系统功能拆解17讲-平台端订单列表

Talk about low code / zero code tools

The 35 required questions in MySQL interview are illustrated, which is too easy to understand

How long can we "eat" the dividends of domestic databases?

JS学习笔记18-23
随机推荐
MITK create module
Image steganography method
软件开发三大痛点!小程序容器如何解决?
Creating, deleting and viewing Anaconda virtual environment
Third class exercise
Matlab load usage
The automatic prompt of vs code code is missing - a tick to solve it
Three pain points of software development! How to solve the applet container?
SQL labs detailed problem solving process (less1-less10)
4、 C language operators
PHP magic method
Redis configuration file explanation
VTK vtkcontourwidget extracts regions of interest
Solution: attributeerror: type object 'h5py.h5a AttrID has no attribute __ reduce_ cython__
Tensorflow GPU installation process record
Pytorch GPU installation
Second class exercise
View gnuradio version
7、 Detailed explanation of C language function definition
8、 C scope rules