mirror of
				https://github.com/Laupetin/OpenAssetTools.git
				synced 2025-10-30 10:06:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			75 lines
		
	
	
		
			805 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			805 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| alphaTest
 | |
| {
 | |
| 	mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == InvSrcAlpha:
 | |
| 	mtlAlphaTest == Always && mtlBlendOp == Add && mtlSrcBlend == SrcAlpha && mtlDestBlend == One:
 | |
| 		GT0;
 | |
| 	default:
 | |
| 		passthrough;
 | |
| }
 | |
| 
 | |
| blendFunc
 | |
| {
 | |
| 	default:
 | |
| 		Add, One, InvSrcAlpha;
 | |
| }
 | |
| 
 | |
| separateAlphaBlendFunc
 | |
| {
 | |
| 	mtlBlendOp == Disable:
 | |
| 		Disable, One, Zero;
 | |
| 	default:
 | |
| 		Add, InvDestAlpha, One;
 | |
| }
 | |
| 
 | |
| cullFace
 | |
| {
 | |
| 	default:
 | |
| 		passthrough;
 | |
| }
 | |
| 
 | |
| depthTest
 | |
| {
 | |
| 	default:
 | |
| 		passthrough;
 | |
| }
 | |
| 
 | |
| depthWrite
 | |
| {
 | |
| 	mtlBlendOp == Disable:
 | |
| 		Enable;
 | |
| 	default:
 | |
| 		passthrough;
 | |
| }
 | |
| 
 | |
| colorWrite
 | |
| {
 | |
| 	mtlPolygonOffset == 0:
 | |
| 		Enable, Enable;
 | |
| 	default:
 | |
| 		Enable, Enable;
 | |
| }
 | |
| 
 | |
| gammaWrite
 | |
| {
 | |
| 	default:
 | |
| 		passthrough;
 | |
| }
 | |
| 
 | |
| polygonOffset
 | |
| {
 | |
| 	default:
 | |
| 		passthrough;
 | |
| }
 | |
| 
 | |
| stencil
 | |
| {
 | |
| 	default:
 | |
| 		passthrough;
 | |
| }
 | |
| 
 | |
| wireframe
 | |
| {
 | |
| 	default:
 | |
| 		Disable;
 | |
| }
 |