当前位置: 首页>>代码示例>>C#>>正文


C# Xen.GetGlobalUniqueID方法代码示例

本文整理汇总了C#中Xen.GetGlobalUniqueID方法的典型用法代码示例。如果您正苦于以下问题:C# Xen.GetGlobalUniqueID方法的具体用法?C# Xen.GetGlobalUniqueID怎么用?C# Xen.GetGlobalUniqueID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Xen的用法示例。


在下文中一共展示了Xen.GetGlobalUniqueID方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: gdInit

		/// <summary>Setup shader static values</summary><param name="state"/>
		private void gdInit(Xen.Graphics.ShaderSystem.ShaderSystemBase state)
		{
			// set the graphics ID
			BackgroundFill.gd = state.DeviceUniqueIndex;
			this.GraphicsID = state.DeviceUniqueIndex;
			BackgroundFill.gid0 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector2>("RgbmImageRenderScale");
			BackgroundFill.sid0 = state.GetNameUniqueID("CubeRgbmSampler");
			BackgroundFill.tid0 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Graphics.TextureCube>("CubeRgbmTexture");
		}
开发者ID:shadarath,项目名称:Wirtualna-rzeczywistosc,代码行数:10,代码来源:Background.fx.cs

示例2: gdInit

		/// <summary>Setup shader static values</summary><param name="state"/>
		private void gdInit(Xen.Graphics.ShaderSystem.ShaderSystemBase state)
		{
			// set the graphics ID
			Tutorial16.gd = state.DeviceUniqueIndex;
			this.GraphicsID = state.DeviceUniqueIndex;
			Tutorial16.gid0 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector4>("colour");
		}
开发者ID:shadarath,项目名称:Wirtualna-rzeczywistosc,代码行数:8,代码来源:shader.fx.cs

示例3: gdInit

		/// <summary>Setup shader static values</summary><param name="state"/>
		private void gdInit(Xen.Graphics.ShaderSystem.ShaderSystemBase state)
		{
			// set the graphics ID
			RgbmDecode.gd = state.DeviceUniqueIndex;
			this.GraphicsID = state.DeviceUniqueIndex;
			RgbmDecode.cid0 = state.GetNameUniqueID("UseExposureTonemapping");
			RgbmDecode.cid1 = state.GetNameUniqueID("UseFilmApproxTonemapping");
			RgbmDecode.cid2 = state.GetNameUniqueID("UseGammaCorrection");
			RgbmDecode.cid3 = state.GetNameUniqueID("UseInverseOneTonemapping");
			RgbmDecode.gid0 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector2>("BloomScaleThreshold");
			RgbmDecode.gid1 = state.GetGlobalUniqueID<float>("LensExposure");
			RgbmDecode.gid2 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector2>("RgbmImageRenderScale");
			RgbmDecode.sid0 = state.GetNameUniqueID("BloomSampler");
			RgbmDecode.sid1 = state.GetNameUniqueID("InputSampler");
			RgbmDecode.tid0 = state.GetNameUniqueID("InputTexture");
			RgbmDecode.tid1 = state.GetNameUniqueID("BloomTexture");
		}
开发者ID:shadarath,项目名称:Wirtualna-rzeczywistosc,代码行数:18,代码来源:Composite.fx.cs

示例4: gdInit

 /// <summary>Setup shader static values</summary><param name="state"/>
 private void gdInit(Xen.Graphics.ShaderSystem.ShaderSystemBase state)
 {
     // set the graphics ID
     Character.gd = state.DeviceUniqueIndex;
     this.GraphicsID = state.DeviceUniqueIndex;
     Character.gid0 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Matrix>("ShadowMapProjection");
     Character.gid1 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector3>("AmbientDiffuseSpecularScale");
     Character.gid2 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector4[]>("EnvironmentSH");
     Character.gid3 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector2>("RgbmImageRenderScale");
     Character.gid4 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector2>("ShadowMapSize");
     Character.gid5 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector3>("SkinLightScatter");
     Character.gid6 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector3>("SunDirection");
     Character.gid7 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector4>("SunRgbIntensity");
     Character.gid8 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector2>("SunSpecularPowerIntensity");
     Character.gid9 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Vector3>("UseAlbedoOcclusionShadow");
     Character.sid0 = state.GetNameUniqueID("AlbedoSampler");
     Character.sid1 = state.GetNameUniqueID("CubeRgbmSampler");
     Character.sid2 = state.GetNameUniqueID("NormalSampler");
     Character.sid3 = state.GetNameUniqueID("ShadowSampler");
     Character.sid4 = state.GetNameUniqueID("SofSampler");
     Character.tid0 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Graphics.TextureCube>("CubeRgbmTexture");
     Character.tid1 = state.GetGlobalUniqueID<Microsoft.Xna.Framework.Graphics.Texture2D>("ShadowTexture");
     Character.tid2 = state.GetNameUniqueID("SofTexture");
     Character.tid3 = state.GetNameUniqueID("AlbedoTexture");
     Character.tid4 = state.GetNameUniqueID("NormalTexture");
 }
开发者ID:apeape,项目名称:Xen-Game-Client,代码行数:27,代码来源:Character.fx.cs


注:本文中的Xen.GetGlobalUniqueID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。