虚幻4 改变默认UI Disable的Shader
2016-05-24 15:16
507 查看
虚幻默认的UI Disable 太难看,
文件:
Engine_Updating\Engine\Shaders\SlateElementPixelShader.usf
改为:
可以用虚幻的材质编辑器测试一下,
再次开启编辑器会导致编辑器卡在95%,因为在编译新的shader。等一会就好了。
文件:
Engine_Updating\Engine\Shaders\SlateElementPixelShader.usf
#if DRAW_DISABLED_EFFECT //desaturate float3 LumCoeffs = float3( 0.3, 0.59, .11 ); float Lum = dot( LumCoeffs, OutColor.rgb ); OutColor.rgb = lerp( OutColor.rgb, float3(Lum,Lum,Lum), .8 ); float3 Grayish = {.1, .1, .1}; OutColor.rgb = lerp( OutColor.rgb, 3, clamp( distance( OutColor.rgb, Grayish ), 0, .8) ); #endif
改为:
<span style="font-family: Arial, Helvetica, sans-serif;">#if DRAW_DISABLED_EFFECT</span>
//desaturate float3 LumCoeffs = float3( 0.3, 0.59, .11 ); float Lum = dot( LumCoeffs, OutColor.rgb ); OutColor.rgb = lerp( OutColor.rgb, float3(Lum,Lum,Lum), .8 ); //float3 Grayish = {.1, .1, .1}; //OutColor.rgb = lerp( OutColor.rgb, 3, clamp( distance( OutColor.rgb, Grayish ), 0, .8) ); #endif
可以用虚幻的材质编辑器测试一下,
再次开启编辑器会导致编辑器卡在95%,因为在编译新的shader。等一会就好了。
相关文章推荐
- Django中嵌入ueditor并改进SyntaxHighlighter
- LinkIssue: Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or cor
- 1017. Queueing at Bank (25)
- finished with non-zero exit value 2
- STL之deque
- KVC中setValuesForKeysWithDictionary:
- request threaded-only IRQs with IRQF_ONESHOT【转】
- Android高级UI GridView
- iOS-OC-UITableViewCell分割线自定义
- aidl.exe'' finished with non-zero exit value 1问题解决【转载】
- UICollectionViewLayout
- aidl.exe'' finished with non-zero exit value 1问题解决
- iOS学习之——UIView的setNeedsDisplay和setNeedsLayout方法
- easyui页面一打开的时候出现短暂混乱的问题,解决办法
- [BS-26] UIView、pop和Core Animation区别
- Quartz 2D的坐标系和UIKit的坐标系对比以及相互转换 ? 赶驴记
- 使用requirejs 调用百度地图解决方案
- IOS9 UIStackView(转)
- AsyncTask - 基本原理 后台线程和UI线程的交互
- SQLMAP自动注入-REQUEST和SQLMAP自动注入(三)-OPTIMIZATION优化