码迷,mamicode.com
首页 >  
搜索关键字:rendertexture    ( 42个结果
Texture to texture2D
private void SaveRenderTextureToPNG(Texture inputTex, string file) { RenderTexture temp = RenderTexture.GetTemporary(inputTex.width, inputTex.height, ... ...
分类:其他好文   时间:2018-01-26 13:58:55    阅读次数:156
几个Graphics函数
1.Graphics.Blit:Copies source texture into destination render texture with a shader 声明: 1.public static void Blit(Texture source, RenderTexture dest, ...
分类:其他好文   时间:2017-11-08 13:16:32    阅读次数:470
Unity3D Shader 空气扭动效果
//预览图 //原理 一个摄像机CullingMask设置只可见"Distortion"的Layer(需要自己手动加),输入到一张RenderTexture,其实就是用于确定哪里要扭曲。 另外一个摄像机CullingMask设置成对除了"Distortion"的Layer可见,并挂上后期效果脚本。 ...
分类:编程语言   时间:2017-10-27 02:01:50    阅读次数:374
【Unity】Glow11插件入门教程
【Unity】Glow11插件入门教程 Glow11插件是Unity Asset Store中非常强大的自发光插件,这篇文章用来Glow11的快速入门。 一.安装说明 ~下载 ~安装 二.Glow设置 High Precision:高精度 使用更高精度的RenderTexture,如果你的Inner ...
分类:编程语言   时间:2017-10-09 22:47:41    阅读次数:443
untiy3D RenderTexture 小地图在 在Game 看不到 但是在Scene下面能看到
1. 2. ...
分类:其他好文   时间:2017-08-16 20:20:10    阅读次数:156
Unity 发送游戏画面到 Winform
一、首先看一下Unity界面: 设了2个摄像机,位置重叠,旋转相同,父子关系,在父摄像机上加上脚本A.cs,并将子摄像机复制给A脚本中的变量Cam; Cam用于为RenderTexture提供画面,Port是Socket监听的端口; 二、A.cs脚本代码(夜太深,改天再补充注释,直接贴代码) 三、W ...
分类:编程语言   时间:2017-08-11 10:35:38    阅读次数:283
unity RenderTexture
using UnityEngine;using System.Collections; public class RenderTextureTest : MonoBehaviour{ private RenderTexture RT; // Use this for initialization v ...
分类:编程语言   时间:2017-05-31 12:14:08    阅读次数:265
Cocos2d-x3.0 RenderTexture(三)
.h #include "cocos2d.h" #include "cocos-ext.h" #include "ui/CocosGUI.h" #include "cocostudio/CocoStudio.h" USING_NS_CC; USING_NS_CC_EXT; using namespa ...
分类:其他好文   时间:2017-05-25 11:44:27    阅读次数:237
[编辑器]Unity批量处理图片
加载图片,将其画在一张RenderTexture中,再新建一张Texture2D,从rt中读出来处理过的数据,再存进原路径中, 比如要将所有图片扩大1.5倍: 为防止重复编辑,可以在userdata中添加标志: ...
分类:编程语言   时间:2017-04-04 11:55:39    阅读次数:293
UNITY把3D模型显示在UI层级上的思路
一般UI是处理于显示最高层级的, 因此这里的做法是 使用镜子效果,做镜子可使用renderTexture 然后启用一个摄像机对renderTexture进行数据填充, 然后在ui上使用Raw Image控件,读取renderTexture来显示 效果如下: ...
分类:编程语言   时间:2017-03-15 11:40:25    阅读次数:582
42条   上一页 1 2 3 4 5 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!