Git Product home page Git Product logo

dxdecompiler's People

Contributors

lanyizi avatar spacehamster avatar sweetgiorni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dxdecompiler's Issues

I have a precompiled version of a shader. What should I do to decompile it?

I have a disassembled version of a shader. What should I do to decompile it?

Shader "SFX_SUB_G" {
	Properties {
		_Color ("Color", Color) = (2,2,2,1)
		_Threshold ("Threshold", Float) = 0.0295
	}
	SubShader { 
		Tags { "ForceSupported"="true" "RenderType"="Overlay" }
		Pass {
			Tags { "ForceSupported"="true" "RenderType"="Overlay" }
			ZWrite Off
			Cull Off
			Blend One One
			BlendOp RevSub
			GpuProgramID 39892
			Program "vp" {
				SubProgram "d3d9 " {
					Bind "vertex" Vertex
					Bind "color" Color
					Matrix 0 [glstate_matrix_projection]
					Vector 5 [_Color]
					Vector 4 [_ProjectionParams]
					"vs_2_0
						def c6, 20, 1, 0, 0
						dcl_position v0
						dcl_color v1
						mov r0.zw, c6.y
						mov r1.x, c6.x
						add r1.x, r1.x, c4.y
						add r1.z, -r1.x, v0.z
						mov r0.xy, -r1.z
						mov r1.xyw, v0
						dp4 r2.x, c0, r1
						dp4 r2.y, c1, r1
						dp4 r2.z, c2, r1
						dp4 r2.w, c3, r1
						mul r0, r0, r2
						rcp r1.x, r0.w
						mul r0, r0, r1.x
						max r0.z, r0.z, c6.z
						mov oPos.xyw, r0
						min oPos.z, r0.z, c6.y
						mul r0.xyz, v1, c5
						mul oD0.xyz, r0, v1.w
						mov oD0.w, c6.y
						
						"
				}
			}
			Program "fp" {
				SubProgram "d3d9 " {
					"ps_2_0
						dcl v0
						mov oC0, v0
						
						"
				}
			}
		}
	}
	Fallback "Diffuse"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.