当前位置:网站首页>[unity shader] substitution of bool type in the property definition
[unity shader] substitution of bool type in the property definition
2022-07-01 09:34:00 【True ghost 123】
stay shader Of Properties Attribute definition , Can't use bool Type variable , The following wording will report an error .
_IsTrue("Istrue", bool) = true
have access to float type +toggle Label instead of
[Toggle(_True)]_IsTrue("Istrue", float) = 1
increase Toggle After label , stay Inspector The palette , This variable is a check box .
If checked, it will be the default value , Unchecking is not the default .
Where judgment is needed , Judge _IsTrue Whether it is the default value .
边栏推荐
- js 使用toString 区分Object、Array
- Can diffusion models be regarded as an autoencoder?
- Youqitong PE toolbox [vip] v3.7.2022.0106 official January 22 Edition
- es6-顶层对象与window的脱钩
- [pytorch learning] torch device
- 类加载
- Day06 branch structure and cycle (III)
- Principle and application of single chip microcomputer timer, serial communication and interrupt system
- [untitled]
- 集成积木报表报错 org.apache.catalina.core.StandardContext.filterStart 启动过滤器异常
猜你喜欢
【电赛训练】红外光通信装置 2013年电赛真题
delete和delete[]引发的问题
Swift control encapsulation - paging controller
Principle and application of single chip microcomputer timer, serial communication and interrupt system
2.3 [kaggle dataset - dog feed example] data preprocessing, rewriting dataset, dataloader reading data
Implementation and application of queue
Imitation of Baidu search results top navigation bar effect
JS scope chain and closure
【检测技术课案】简易数显电子秤的设计与制作
dsPIC30F6014a LCD 方块显示
随机推荐
类加载
Principles of Microcomputer - internal and external structure of microprocessor
记一次redis超时
JS variable lifting
Installation and use of NoSQL database
PHP array functions (merge, split, append, find, delete, etc.)
Introduction to mt7628k eCos development
[untitled]
2.3 【kaggle数据集 - dog breed 举例】数据预处理、重写Dataset、DataLoader读取数据
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的WS2812灯控系统
laravel postman 提交表单出现419错误。2020年7月6日记。
SQL learning notes (01) - basic knowledge of database
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的温湿度监控系统
SQL学习笔记(01)——数据库基本知识
Simple load balancing with Nacos
【pytorch】transforms. Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
[pytorch learning] torch device
JS prototype inheritance can only inherit instances, not constructors
Naoqi robot summary 28
NoSQL数据库的安装和使用