当前位置:网站首页>[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 .
边栏推荐
- Naoqi robot summary 28
- [pytorch] 2.4 convolution function nn conv2d
- [ESP nanny level tutorial] crazy completion chapter - Case: temperature and humidity monitoring system based on Alibaba cloud, applet and Arduino
- Log4j 日志框架
- How to launch circle of friends marketing and wechat group activities
- ESP8266 FreeRTOS开发环境搭建
- [video game training] real topic of 2013 video game of infrared optical communication device
- SQL learning notes (03) -- data constraint relationship
- Exception handling of classes in C #
- Mikrotik Routeros Internet access settings
猜你喜欢

Construction of esp8266 FreeRTOS development environment

nacos簡易實現負載均衡

Reproduced Xray - cve-2017-7921 (unauthorized access by Hikvision)

I use flask to write the website "one"

Error org apache. catalina. core. StandardContext. FilterStart start filter exception

JS scope chain and closure

dsPIC30F6014a LCD 方块显示

Microcomputer principle - bus and its formation

MapReduce编程基础

【无标题】
随机推荐
Spark's action operator
js valueOf 与 toString 区别
Design and manufacture of simple digital display electronic scale
Differences between JS valueof and toString
JS prototype inheritance can only inherit instances, not constructors
Using closures to implement private variables
SQL学习笔记(01)——数据库基本知识
【pytorch】nn.AdaptiveMaxPool2d
Why is the Ltd independent station a Web3.0 website!
js函数arguments对象
Get the list of a column in phpexcel get the letters of a column
Log4j 日志框架
Network counting 01 physical layer
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + MQ系列 + NodeJs本地服务 + MySql存储
2.3 【pytorch】数据预处理 torchvision.datasets.ImageFolder
2.4 activation function
Is it safe to dig up money and make new shares
js重写自己的函数
UE small knowledge point controller possess pawn process
计网01-物理层