摘要: unity shader 法线贴图例子: Shader "Custom/textureshader" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} _BumpMap ("bumpmmap",2D) = "white"{} } SubS 阅读全文
posted @ 2016-03-06 17:25 hcs2024 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Surface Shader Examples surfaceoutput 结构: struct SurfaceOutput { half3 Albedo; //像素的颜色 half3 Normal; //像素的法向值 half3 Emission; //像素的发散颜色 half Specular; 阅读全文
posted @ 2016-03-04 22:51 hcs2024 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1.you can't determine whether or not a child object is currently active in the scene by reading itsactiveSelfproperty. Instead, you should use theacti... 阅读全文
posted @ 2015-08-21 20:28 hcs2024 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 5.5. DictionariesAnother useful data type built into Python is thedictionary(seeMapping Types — dict). Dictionaries are sometimes found in other langu... 阅读全文
posted @ 2014-11-17 15:47 hcs2024 阅读(227) 评论(0) 推荐(0) 编辑
摘要: ord(c)Given a string of length one, return an integer representing the Unicode code point of the character when the argument is a unicode object, or t... 阅读全文
posted @ 2014-11-16 13:56 hcs2024 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 本文转自阮一峰的网络日志我们每天使用互联网,你是否想过,它是如何实现的?全世界几十亿台电脑,连接在一起,两两通信。上海的某一块网卡送出信号,洛杉矶的另一块网卡居然就收到了,两者实际上根本不知道对方的物理位置,你不觉得这是很神奇的事情吗?互联网的核心是一系列协议,总称为"互联网协议"(Internet... 阅读全文
posted @ 2014-11-04 21:35 hcs2024 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 这里给出的是一份操作系统常考知识点的总结,希望能给大家带来一些小小的帮助。 http://blog.csdn.net/xieyutian1990/article/details/384033571、进程是并发过程中程序的执行过程2、进程的特征:结构特征动态性并发性独立性异步性3、临界区指在每个进程... 阅读全文
posted @ 2014-10-15 09:43 hcs2024 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1. 内存管理方法内存管理主要包括虚地址、地址变换、内存分配和回收、内存扩充、内存共享和保护等功能。2. 连续分配存储管理方式连续分配是指为一个用户程序分配连续的内存空间。连续分配有单一连续存储管理和分区式储管理两种方式。2.1 单一连续存储管理在这种管理方式中,内存被分为两个区域:系统区和用户区。... 阅读全文
posted @ 2014-10-15 09:39 hcs2024 阅读(205) 评论(0) 推荐(0) 编辑
摘要: B 树即二叉搜索树:1.所有非叶子结点至多拥有两个儿子(Left和Right);2.所有结点存储一个关键字;3.非叶子结点的左指针指向小于其关键字的子树,右指针指向大于其关键字的子树;如:B树的搜索,从根结点开始,如果查询的关键字与结点的关键字相等,那么就命中;否则,如果查询关键字比结点关键字小,就... 阅读全文
posted @ 2014-10-15 09:30 hcs2024 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1、链表反转问题#include //元结点struct Node{ int data; Node *next;};typedef struct Node Node;//链表反转(循环方法)Node *Reverse(Node *head){ Node *prev = NULL; ... 阅读全文
posted @ 2014-10-15 00:24 hcs2024 阅读(111) 评论(0) 推荐(0) 编辑